I have a couple of custom pages in WordPress. How do I tell my page to get me only the posts I assign (if I could assign) to that page? Is there a way to tell posts whose page they are for?

  • 1
    I don't have the full picture, but the correct way to do this probably wouldn't be with pages. Instead you should assign the post to categories, and then provide custom templates for those categories. – Jacob Peattie Jun 2 '19 at 16:03
  • @butlerblog This type of edition should not be made from the Low Quality Posts queue. – nmr Jun 3 '19 at 8:19

If you write code...

Step 1. Find and edit every post you want to assign to a page and give them all either: 1) The same Category, 2) The same Tag or 3) The same post metadata

Step 2. On that page's template or in a custom block or widget write a WP_Query that gets the posts (by tag, category or post meta) and displays them on the page in the format you want.

There are other solutions and even more if you are not a developer but that is the solution I think is the easiest if you know how to write code.

  • did it work out? – fall3n Jun 9 '19 at 17:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.