• I have created a new template which will display 3 different pages.

    At the bottom of the template I am using wp_get_archives. At the moment it lists all the posts on my site, however I want each page to simply display only posts that are in the same category as the page.

    The Title of each of the 3 pages I have set up matches me 3 categories.

    I have tried using:
    <?php wp_get_archives(‘type=postbypost&format=html&category=5’); ?>
    just to see if this works, but it still pulls all posts back.

    Is their a way I can do something like:
    <?php wp_get_archives(‘type=postbypost&format=html&category=PAGE TITLE’); ?>

    Thanks in advance for any help.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Can I get archives based on Page Title’ is closed to new replies.