• Resolved cscarnevale

    (@cscarnevale)


    Can anyone think of a way to limit the response of the wp_list_pages(), get_pages(), or wp_dropdown_pages() fundtions to only pages that have a certain tag applied to them?

    Specifically. I would like to use the “Page-list” plugin or the “WP Dropdown” plugin to use shortcode to insert a few different lists of posts, each listing subpages with a certain tag.

    Any thoughts or help is appreciated.

    Chris

Viewing 1 replies (of 1 total)
  • Thread Starter cscarnevale

    (@cscarnevale)

    I got it. Thanks to another user pointing me toward WP Query and setting parameters, that’s the route I went.

    I downloaded the plugin Shaun’s WP Query Shortcode and used the shortcode to place the list within my page, then I set the tag and post_parent parameters as such:

    [wpquery tag=<strong>example-tag</strong> post_parent=<strong>2</strong>] [wpq_index] [/wpquery]

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

Viewing 1 replies (of 1 total)
  • The topic ‘WP List Pages or WP Dropdown Limited to a Certain Tag’ is closed to new replies.