Answer the question
In order to leave comments, you need to log in
Is it possible to somehow bind the page template to post_type records?
I created a photo archive page with a template-photo.php template, in it, using the WP_Query loop, I displayed post_type=photo
When I click on the photo, I should open a gallery on the next page:
But the problem is that in my url line: http://название сайта/?post-photo=victor-ql-y44f
And how to make it so when you go to the record?
http://название сайта/photo/victor-ql-y44f
Those. the photoarchive page could display not only previews of entries, but also expanded (for each entry) a full-fledged gallery?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question