-
AuthorPosts
-
September 10, 2018 at 5:40 pm #1007976
Hi,
Is there a way we can display the author and creation date meta data when using Avia layout builder for posts.
I’d like to show the meta data on posts like this
https://www.impactmh.org.uk/news/stress-at-work-and-how-to-deal-with-it/
Thanks
Phil
September 10, 2018 at 6:43 pm #1008000Hey philthebass,
In Enfold options under the blog layout check for it to show the author name and date.
Best regards,
Jordan ShannonSeptember 10, 2018 at 6:45 pm #1008002Hi Jordan,
That’s already checked. ALB stops the meta data from being generated. I’m having a look at this post https://kriesi.at/support/topic/post-using-advanced-editor-how-to-insert-post-meta-info-title-date-etc/ to see if I can get that to work.
Thanks
Phil
September 10, 2018 at 7:11 pm #1008025Hi,
On the link you posted in the first thread, I’m seeing the meta data. Is this your site?
Best regards,
Jordan ShannonSeptember 10, 2018 at 7:16 pm #1008028Hi,
Yes, https://www.impactmh.org.uk/news/stress-at-work-and-how-to-deal-with-it/ is on our site.
I’m looking at this article https://kriesi.at/support/topic/post-using-advanced-editor-how-to-insert-post-meta-info-title-date-etc/ to try to get the meta data to display by using the PHP and shortcode route.
Isn’t there a default setting to display post meta when using ALB? Having to add shortcodes every time we publish a post isn’t a great way to have to do it.
Thanks
September 10, 2018 at 7:39 pm #1008047Hi,
Please link me to a page in which the meta data is not showing.
Best regards,
Jordan ShannonSeptember 10, 2018 at 7:58 pm #1008060Hi
This page is using ALB and will not show meta data
https://www.impactmh.org.uk/news/stress-at-work-and-how-to-deal-with-it/This page does not use ALB and so shows the meta data
Regards
September 11, 2018 at 8:19 am #1008235Hi,
You can use the following shortcode ([sc_post_meta]) to render the post meta info such as date, comments, author etc.
Best regards,
IsmaelSeptember 11, 2018 at 9:12 am #1008268Thanks Ismael,
Can we use he same code/shortcode to display publication date and title or wold we have to use a separate shortcode for each of those like
function post_title_shortcode(){ global $post; return get_the_title($post->ID); } add_shortcode( 'sc_post_title', 'post_title_shortcode' ); function post_date_shortcode(){ global $post; return get_the_date('d F Y', $post->ID); } add_shortcode( 'sc_post_date', 'post_date_shortcode' );
What we are working towards is improving or schema.org structure.
is showing that we still need to add
A value for the headline field is required.
A value for the image field is required.
A value for the publisher field is required.Without ALB we get a better report from Google testing tools, for example
But we we want to be able to keep the great looking layouts that ALB gives us, but still need to improve the schema.
Thanks
Phil
September 12, 2018 at 5:31 am #1008701Hi,
Thanks for the update.
The publication date is included in the “sc_post_meta” shortcode so you don’t have to add the “sc_post_date” shortcode unless you want to put the date somewhere else.
A value for the headline field is required.
Use the special heading element and set the heading to h1 or h2.
A value for the image field is required.
Add an Image element.
A value for the publisher field is required.
The author info is also included in the “sc_post_meta” shortcode.
Best regards,
IsmaelSeptember 12, 2018 at 8:34 am #1008788Hi Ismael,
We ave n H1 special heading, and image within the text block, but the structured data tool is still saying hey are missing.
Also the publisher field is different to the author field. The author field is OK.
On posts where we don’t use ALB, publisher is OK, but the image field is still a problem
Regards
Phil
September 13, 2018 at 4:15 am #1009177Hi,
I would like to check this but I can’t open the data testing tool. I’ll get back to you once I managed to run the page on the test.
Best regards,
IsmaelSeptember 13, 2018 at 10:11 am #1009304Thanks Ismael. I’ll wait to hear back from you.
The tool is working for me right now.
Thanks
Phil
September 14, 2018 at 2:37 am #1009750Hi,
Thank you for your patience. The headline and image should be inside the “BlogPosting” section or the text block where the post meta infos and post content are placed. The headline is currently situated above that section.
Best regards,
IsmaelSeptember 14, 2018 at 9:37 am #1009836Hi Ismael,
I’ve moved the h1 title/headline into the text block and still get the same error for headline.
Same with the image – I’ve moved the image up and added Image Title Attribute to it.
Publisher is also still showing an error.
Regards
Phil
September 17, 2018 at 4:48 am #1010541Hi,
You need to use the special heading shortcode inside the text block. The current h1 tag inside the text block doesn’t have the headline itemprop attribute. The markups should look like this:
heading:
<h1 itemprop="headline">Stress At Work And How To Deal With It</h1>
image:
<div itemprop="image" itemscope itemtype="http://schema.org/ImageObject"> <a href="image-link-here.jpg" itemprop="url"><img itemprop="image" src="image-link-here.jpg"></a></div>
Did you use the post meta info shortcode above? It should be added inside the text block. If you don’t want to go through these steps, you can always use the default editor because it has the basic schema markup already in place.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.