• Resolved maelscuttle

    (@maelscuttle)


    I’m trying to create a custom taxonomy (“Event Pages”, displaying general information about events) for Events Manager ‘Events’ and ‘Recurring Events’ post types. My configuration steps were as follows:

    – I created a new taxonomy called “Event Pages” (event_pages)
    – I assigned the “Event Pages” taxonomy to “Events” and “Recurring Events” post types in the advanced options
    – I created a new field “event_page_content” of type WYSIWYG (Visual Editor)
    – I created a new template “Event Pages Template” with the following content “{@event_page_content}” with a pod reference to “Event Pages”.
    – Within “Event Pages”, I enabled the auto-templating and assigned the “Event Pages Template”
    – I created a new “Event Page” called “Stammi ZH” as can be seen in the linked page above, with a content of “Test”

    Now, the content of the page always remains empty, it’s just the taxonomy title that shows, indicating that Pods somehow doesn’t manage to either locate or render the appropriate template. I’ve tried setting it up with “the_content” hook (which my theme supports – Neve), but to no avail either.

    Am I missing something here? I got into the setup following the usual common steps outlined in various tutorial videos (Grow beyond Posts & Pages, setting up custom taxonomy etc.) but I just can’t get it to work. Any help would be much appreciated!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Paul Clark

    (@pdclark)

    I was able to get this to work with the TwentyTwentyOne theme with default behavior. But it looks like the hook for taxonomies is not the_content, but rather get_the_archive_description as mentioned on the Auto Template Options tab.

    So depending on the content of you theme’s archive.php, you may need to call something like:

    
    <?php
    $description = get_the_archive_description();
    if ( $description ) : ?>
        <div class="archive-description"><?php echo wp_kses_post( wpautop( $description ) ); ?></div>
    <?php endif; ?>
    

    Without auto-templates, it would be something like:

    
    global $wp_query;
    echo wp_kses_post( wpautop( get_term_meta( $wp_query->queried_object->term_id, 'event_page_content', true ) ) );
    
    Plugin Author Jory Hogeveen

    (@keraweb)

    Closing topic du to no reply, feel free to reopen if you still need help!

    Cheers, Jory

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Template not displaying’ is closed to new replies.