Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi, it looks like your theme is not 100% compatible with WPAdverts you will need to create a taxoonomy-advert_category.php file for your theme as explained here https://wpadverts.com/documentation/child-themes-and-templates/ in part Custom Taxonomy Template

    Thread Starter vagueillusion

    (@vagueillusion)

    I’m using the genesis framework, they advise against modifying framework files but instead do overrides in child theme.

    Will it work if I create taxonomy-advert_category.php file and just add the code below?

    <?php 
        global $wp_query;
        remove_filter("the_content", "adverts_the_content");
        echo shortcode_adverts_list(array(
            "category" => $wp_query->get_queried_object_id()
         ));
     ?>
    Plugin Author Greg Winiarski

    (@gwin)

    Most likely just having this code will not work, and if it will you will not have just HTML for the shortcode and nothing else as neither header.php nor footer.php are loaded.

    Thread Starter vagueillusion

    (@vagueillusion)

    Got it sorted, thanks for the help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Blank category archive page’ is closed to new replies.