Answer the question
In order to leave comments, you need to log in
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
Loop like you would in any wp template. while have_posts the_post....
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question