Site logo

Archived topic

Custom page title instead of Blog using Elements

3 replies · Started by Teuvo on January 22, 2019

Viewing posts 1–4 of 4

I use GPP Elements feature to make a simple custom header to each page.


<div id="pghero">
	<h1>
	{{post_title}}
	</h1>
</div>

Unfortunately in Posts page there is text "Blog" in H1 even though a page with "News" title is acting as a Posts page in Settings - Reading.

I tried to solve this using a custom field "news" with a value "News", but with no luck.


<div id="pghero">
	<h1>
	{{custom_field.news}}
	</h1>
</div>

It does not retrieve the value, only prints {{custom_field.news}} code as text inside H1

Is there a simple way to use custom post_title value replacing the default Blog?

OK, thanks. I'll do that or then use WP Show Posts to display articles in another page.

Yup that will both work :)

Glad we could help!

This archived topic is closed to new replies.