• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Add extra content for archive page using Pods plugin. Help plz

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Add extra content for archive page using Pods plugin. Help plz

This topic is: not resolved
  • This topic has 2 replies, 2 voices, and was last updated 5 years, 11 months ago by wparrow.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • April 17, 2017 at 9:21 pm #204908
    wparrow
    Member

    Hello,
    I've use Pods plugin at https://wordpress.org/plugins/pods/ to add extra content for archive page, at the bottom
    Below is the code to call the WYSIWYG field created by pods.

    $pod = pods( get_query_var( 'taxonomy' ), get_query_var( 'term' ) ); 
    echo $pod->display('extracontentforcategory'); 

    I have put the code into Genesis Simple Hooks - genesis_after_entry

    but nothing happen, nothing display. Not the code above works on other theme when I directory put the code info archive.php

    I tried this code

    <?php if (is_category()) {
    $pod = pods( get_query_var( 'taxonomy' ), get_query_var( 'term' ) ); 
    echo $pod->display('ecfc'); 
    }
    ?>

    but it didn't work too

    Do you have experience about Pods plugin or known how to make it work?

    Thanks

    April 17, 2017 at 10:04 pm #204913
    Brad Dalton
    Participant

    Yes. this works.


    Tutorials for StudioPress Themes.

    April 19, 2017 at 4:29 am #204982
    wparrow
    Member

    I tried this code

    <?php if (is_category()) {
    echo $pod->display('extra_content_for_category');
    }
    ?>

    But get error

    Fatal error: Call to a member function display() on null in /home/mydomain.com/public_html/wp-content/plugins/genesis-simple-hooks/genesis-simple-hooks.php(184) : eval()'d code on line 2

    Any one known way to make it work?

    Thanks Braddalton, I will join into your site soon to read your tutorials, need some $$ in my Paypal before make a subscription

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble