Display post(s) by name (slug) ?
-
Is there a way to display post(s) by name (slug) ? I mean the name/slug of the post, not category or tag slug.
If we use ID # it often changes when we move a sites content.
This would equate to the WP_Query parameters “name” or “post_name__in” shown here:
https://codex.www.ads-software.com/Class_Reference/WP_Query#Post_.26_Page_Parameters
- The topic ‘Display post(s) by name (slug) ?’ is closed to new replies.