Archived topic
how to insert author and date post on Use Sections
13 replies · Started by phan cong tai on January 11, 2020
how to insert author and date post on Use Sections?
I mean the author doesn't show up when I choose Use Sections. What to do?
Hi there,
Sections remove everything from your page so you have a blank slate to start with.
The function that Leo linked to gives you a shortcode which you can then add to your Sections as needed. So with that function, you can now add [entry_meta] in your Section content wherever you want the author/date to show up.
sorry. I don't know how to use [entry_meta] like that? Can you show in detail how to do that?
First, you'll want to add the function using one of these methods: https://docs.generatepress.com/article/adding-php/
Then, in your content where you type all of your text, you can paste that shortcode: [entry_meta]
So let's say this is your content area:
Your Page Title Here
[entry_meta]
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse eu maximus nulla, ut aliquet purus. Sed imperdiet neque enim, sed hendrerit ex dictum a. Praesent in risus in purus tincidunt tempor nec quis dui. Nunc ultricies tempus pulvinar.
Aenean dictum arcu erat, sed tempor nisl vehicula nec. Curabitur lobortis egestas sagittis. Quisque enim enim, blandit vel ipsum nec, semper ultricies mauris. Duis quis maximus magna. Donec lobortis vulputate porta. Sed dignissim sagittis arcu eu volutpat. Duis dignissim est eu lorem pellentesque, in eleifend sapien pellentesque. Sed ornare magna non posuere condimentum. Curabitur iaculis porta metus quis aliquam. Proin vel sagittis velit.
Let me know if that helps or not :)
Where do I paste this code?: Can you give detailed instructions?

One of these methods:
https://docs.generatepress.com/article/adding-php/
Code snippets plugin is the easiest if you aren't using a child theme already.
I have succeeded. But how to customize author page link?

Hi there,
how do you want to customize it? For example this CSS will allow you to change the color and font size:
.author.vcard a {
color: #ff0000;
font-size: 17px;
}
I do want to point the author link to this page: https://nhomkinhcongtri.com/phan-cong-tai/
This topic explains how to redirect author page:
https://generatepress.com/forums/topic/author-link-to-wordpress-bio-or-about-us-page/#post-936850
I have succeeded! Thanks everyone.
Glad we could be of help