Support » Fixing WordPress » Page Tags Query in Only One Subdirectory

Viewing 4 replies - 1 through 4 (of 4 total)
  • esmi


    Forum Moderator

    but only in one subdirectory

    WordPress doesn’t use subdirectories? Can you be a little more specific?

    Maybe I mean subpages.


    I want to specify in my query to only pull results from subpages under “plants.”

    Does this make sense?

    I also found this plugin “List Pages Shortcode” that looks perfect if I could tweak it to output subpages with a certain tag:



    Forum Moderator

    Have a look at the post_parent parameters.

    Yes! post-parent parameters did it! Thank you. I used the plugin Shaun’s WP Query Shortcode to place the list within my page, then I set the tag and post_parent parameters.

    For example, after installing Shaun’s WP Query Shortcode, I just entered:

    [wpquery tag=nitrogen-fixer post_parent=2] [wpq_index] [/wpquery]

    Where “nitrogen-fixer” was my tag and “2” was my parent page of which I wanted to display the child pages.


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Page Tags Query in Only One Subdirectory’ is closed to new replies.