Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Emily,
    At the page you have mentioned it shows
    Skills Training Fair for ESOL Students as h1 title which is different from the event title “Networking Group for Restaurant and Hospitality Workers”.
    So do you mean that “Skills Training Fair for ESOL Students ” is not the category title?

    Thread Starter emilywieja

    (@emilywieja)

    Hi chathuripxl – thanks for your response. Yes, correct – the category is “hospitality” as seen correctly in the slug; the h1 it is pulling appears to be the title of the first event of that category that was ever created.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    you can try to create custom theme template taxonomy-event-categories.php and then you can try this custom snippet

    <?php
    /**
     * Template Name: Fullwidth Page
     * NOTE: you can also copy your theme single.php, page.php, or other wp templates
     */
    get_header(); ?>
    <?php
        $queried_object = get_queried_object();
        $term_id = $queried_object->term_id;
           
        $EM_Category = em_get_category($term_id);
    ?>
    <div id="indent">
        <h2><?php echo $EM_Category->output('#_CATEGORYNAME'); ?></h2>
        <p><?php echo $EM_Category->output('#_CATEGORYNOTES'); ?></p>
        <p><?php echo $EM_Category->output('#_CATEGORYNEXTEVENTS'); ?></p>
    </div>
    <?php get_footer(); ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Single Category Page title not pulling #_CATEGORYNAME’ is closed to new replies.