Balaji Venkatraman
Balaji Venkatraman

Reputation: 1337

How to List pages in other pages in wordpress(Ex: wp-show-posts)

I have a word press website where I have a list of programming language cheat sheets. Also, I have a blog where I post my articles. Now I want a list of cheat sheets on the parent page (like the blogs page). I have to show an image of the cheatsheet and a read more button. I tried using wp-show-posts plugin. But that lists all the page.

Upvotes: 0

Views: 45

Answers (1)

Johannes
Johannes

Reputation: 67748

You can assign a certain category to all those cheat sheet posts and then use a custom query which only queries the posts which have that category. (see https://developer.wordpress.org/reference/classes/wp_query/ for details)

Upvotes: 1

Related Questions