A
A
Alexander Epikhin2020-04-22 09:21:51
WordPress
Alexander Epikhin, 2020-04-22 09:21:51

How to display content on a custom post type archive page?

I created a custom post type nashi-zavedenia. Recordings are now available at site.ru/nashi-zavedenia/moe-zavedenie.
I need to add the header and content output from the admin panel to the site.ru/nashi-zavedenia/ page.
I created a page in the admin panel, indicated the url /nashi-zavedenia/ to it, but this did not help. In archive-nashi-zavedenia.php, the title output (the_title) outputs the title of the first post, but the content output (the_content) does not work.
Please tell me how to solve this problem.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dima Polos, 2020-04-22
@dimovich85

Loop like you would in any wp template. while have_posts the_post....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question