Site logo

Archived topic

How to add a summary section next to Post heading?

6 replies · Started by Sibi Paul on February 15, 2022

Viewing posts 1–7 of 7

Kindly check this post I added in the secret section.

there you can see a summary added just after the Heading, and above the featured image.

How can I do the same in GP?

I updated the web-summary details

Hi Sibi Paul,

Are you referring to custom subtitles for Posts?

One way to achieve this is through these steps:

1. Install WP-Subtitle: https://wordpress.org/plugins/wp-subtitle/
2. Create a new Hook Element with this code:

<?php the_subtitle( '<h5>', '</h5>' );
?>

This Hook Element should be hooked to generate_after_entry_title, and execute PHP should be turned on. Moreover, the priority should be a value less than 10.

See this for reference: https://share.getcloudapp.com/6quEpOEy

You may add subtitles as such: https://share.getcloudapp.com/xQuzm4AX

Don’t forget to set the Display rules to Blog and Post or whichever your preference is.

See: https://share.getcloudapp.com/nOu9rzX0

Hope this helps! :)

no

By summary do you mean the excerpt?

You can add this through a Block Element. Specifically, you’ll need to add a Dynamic Content, and hook it to after_entry_title with a priority of 9.

Kindly see: https://share.getcloudapp.com/jkumk6Q6

Also see: https://share.getcloudapp.com/NQuxX5g8

You can also replace this Dynamic Content to something static if that’s what you prefer.

As an alternative, you can also simply create an entire Page Hero for this.

See this for reference: https://share.getcloudapp.com/wbuYg5K2

Lastly, here is a helpful video you can refer to: https://www.youtube.com/watch?v=H6wHd83DfDI

Hope this helps! :)

I think, this will work for me...

What if I need to show

Dynamic Meta Description by Yoast, Just after the Title on every post?

For this, you can set it up like this: https://share.getcloudapp.com/mXuJXz1R

From research, the Yoast Meta description meta name is _yoast_wpseo_metadesc.

Specifically, you’ll need to set the Dynamic text type of a Headline block to Post Meta and add this meta name.

https://wordpress.stackexchange.com/questions/111556/how-to-display-yoast-seo-meta-description-in-archive-template-for-each-post-inst#:~:text=echo-,get_post_meta,-(get_the_ID()%2C%20%27_yoast_wpseo_metadesc%27%2C%20true

Here it is working from my end: https://share.getcloudapp.com/6quEnXxA

Also see: https://share.getcloudapp.com/OAu4yNgr

Kindly use the same hook type and hook name as before. The priority should be less than 10. You can also experiment with the priority value to see where it gets placed.

Hope this helps! :)

This archived topic is closed to new replies.