• Hi, I’m new to GeneratePress and have a question please!

    I have created Custom Taxonomy (using WordPress Pods) and the ‘main’ meta data loads on the GeneratePress archive page that is created.

    My question is, is it possible to tweak and edit these templates?

    I know that there is a WordPress hierarchy in place, but I am wondering how I would go about being able to include MORE meta data on this archive page?

    At the moment the only information shown is the header and an excerpt of text.

    Thanks for all help and I hope to be able to use GeneratePress, looks great.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter conciseac

    (@conciseac)

    Is this even possible? Here’s a screenshot that might better explain what I am trying to achieve here: https://screencast.com/t/ipd9uh93Yi

    ^ So regarding the above, can someone point me to the documentation to explain what PHP needs to be inserted and where?

    Thanks

    • This reply was modified 5 years, 8 months ago by conciseac.
    Theme Author Tom

    (@edge22)

    Hi there,

    You can use custom fields to input the data, and then use hooks to output it.

    For example:

    add_action( 'generate_after_entry_title', function() {
        if ( is_tax( 'your-taxonomy' ) ) {
            $custom_field = get_post_meta( get_the_ID(), 'your_custom_field', true );
    
            if ( $custom_field ) {
                echo $custom_field;
            }
        }
    } );

    Let me know if you need more info ??

    Thread Starter conciseac

    (@conciseac)

    Thanks Tom! I think I’m going to upgrade over the weekend to the premo version. That gives me a ton more flexibility right?

    Thread Starter conciseac

    (@conciseac)

    Also! Let me ask you as well pls – where can I get some extra information on how to implement WordPress hooks within GeneratePress? Thanks

    Theme Author Tom

    (@edge22)

    Awesome! Absolutely, tons of cool features in the pro version.

    You can find our collection of hooks here: https://docs.generatepress.com/collection/hooks/

    Let me know if you have any other questions ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Customizing taxonomy archive pages’ is closed to new replies.