I
I
Ilya Matviychuk2020-08-07 20:35:39
WordPress
Ilya Matviychuk, 2020-08-07 20:35:39

How to make a loop for a new post type in wordpress?

I registered a new post type postSec . How to make a loop to display such posts?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dima Polos, 2020-08-07
@iliya2004

The course on wp, everything is there, and in short - either inside the template for this type of post is the standard wp cycle, or through get_posts / WP_Query get posts and display the cycle, with or without using setup_postdata.
You can watch in this webinar , you can also peep.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question