Archived topic
How to add excerpt to page?
9 replies · Started by Vl on July 17, 2019
Hello!
I need to add Excerpt to the page (just like it exists in the post). Can you tell me what code to write (I use Code Snippets plugin)?
Thanks you.
Hi there,
I was able to find this on Google:
https://www.wpentire.com/excerpt-field-in-wordpress-post-page/
Let me know :)
Thank you, I also found this code:
add_post_type_support ('page', 'excerpt');
Is this code really correct, will it not break your theme?
Looks good to me.
That's WordPress default function.
Thank you!
No problem :)
Aloha,
Can that 'page excerpt' then be called in for display via a GP Element?
I only see ...
Title
Post date
Post author name
List of terms
Comments number
Post meta
Term meta
Author meta
... as available 'dynamic options' with a GB Headline block (set to P).
Thanks :)
Bill
Hi William,
For the page excerpt, you can use the "Dynamic Content" block as shown here -
https://share.getcloudapp.com/JruxmWdE
Elvin - you are awesome as always :)
Thanks!
No problem. Glad to be of any help. :D