Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #29200

    Hi guys,

    I am transfering a large site over to enfold but am having some difficulties with the custom post type titles for archive pages. I have a template for the CPT and a portion snipped and pasted below. What I want is to display something different from the current “Archives” heading that current displays here: http://the758.com/restaurants/

    <?php

    global $avia_config, $more;

    /*

    * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.

    */

    get_header();

    echo avia_title(array(‘title’ => avia_which_archive()));

    ?>

    #140016

    Basically you need to create a taxonomy template for your cpt and then replace

    echo avia_title(array('title' => avia_which_archive()));

    with

    echo avia_title(array('title' => 'MY ARCHIVE TITLE'));

    If you want to show the current term zitle in the headline use something like

    echo avia_title(array('title' => 'Archive for '. single_term_title("", false)));

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Custom post type Archive pages’ is closed to new replies.