if “custom post type” display this
-
Hi All, I have to post types (Core posts & ‘Awards’) when you go to an archive page it displays all post types regardless if core or ‘Awards’ which I want! BUT What I would like to do is add a line before each post type ‘Awards’
For intance: if the ‘Awards’ post title is “Kansas Firefighters Museum” instead I’d like it to say “Awards: Kansas Firefighters Museum”
I’m no wordpress expert, but logically the code would look *somthing* like this.
<?php if ( get_post_type() === 'awards' ) { Awards: } ?> } else { Posts: <?php the_title(); ?>
I hope this is making sense.
- This topic was modified 2 years, 1 month ago by . Reason: Moved to Fixing WordPress from Developing with WordPress
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘if “custom post type” display this’ is closed to new replies.