Hi,
I currently have a BLOG, and a NEWS section on my website, the news section is primarily for press releases from the company, while the blog is specifically for blog entries.
Our current setup has the blog entries and news entries showing the same header titles as seen below
News / Press release: http://gyazo.com/1e421477eb172ff6a184e4a164280e8b
Blog: http://gyazo.com/8c1be9844d75c84ab01b92ef9dd3c651
We’d like to separate the two by showing different unique header titles instead of the standard blog title.
Basically I want to change the NEWS header to show News / Press Releases and then show one of the “blog posts” news releases we do.
Is there any way to do this? I’m not sure if it’s possible because both the NEWS and BLOG are basically blog posts just separated into different categories.
I’ve recently updated the theme, removing my customization to the single.php
All BLOG and NEWS pages now show Blog – Latest News as the header,
I’d like one to say Blog, and the other to say News.
Is this possible?
Hi!
You should be able to use a conditional to change the heading with your specific category: http://codex.wordpress.org/Template_Tags/in_category
So something like:
if ( in_category( 'News' ) ) {
$title = __('News and Press Release', 'avia_framework'); //News blog title
} else {
$title = __('Blog - Latest News', 'avia_framework'); //default blog title
}
Or you can use the example in the codex to have 3 different options (else, elseif default).
Cheers!
Devin