WP archive by restaurant
- Started
- Last post
- 3 Responses
- besler
I am doing a redesign on a restaurant review site, and the client is asking for an A-Z restaurant listing. This would normally be easy, but the titles of each review aren't just the names of the restaurants, rather they are something more creative (as most article headlines are).
Is there any way to assign an alternate title to articles, and then have WordPress read this in the archive page only?
If not, are there any other solutions to this anyone can think of? Thanks.
- acescence0
replace the number 26 in...
is_category('26')
with the number associated with your restaurants category, and replace...
meta_key=date
with whatever you name the custom field that holds the restaurant names.
then paste the whole snippet in your archive template above the loop, which is the part that starts with:
if(have_posts()) :