Tagged: x
-
AuthorPosts
-
September 4, 2016 at 7:15 am #1160503
Bark201ParticipantHow do I add date, time, date modified and author to all posts? I switched from an old theme and I am getting errors in google webmaster. I tried downloading the child theme of theme x but it says access restricted because I didnt buy the plugin but I did!!
Please help. If you want me to write my site please tell me how to make it private although it is linked to my profile.
September 4, 2016 at 7:21 am #1160509
Bark201ParticipantI downloaded the child theme, it didnt let me the other day. I just need to know how to fix the above
September 4, 2016 at 7:46 am #1160520
Bark201ParticipantThis reply has been marked as private.September 4, 2016 at 8:07 am #1160535
Bark201ParticipantThese errors are not in hatom but in article (see screenshot). I tried this code but didnt work, noticed its for hatom and not article:
/* Fix "Missing Author" and "Missing Updated" issue - START */ add_filter( 'the_content', 'custom_author_code'); function custom_author_code($content) { if (is_singular() || is_single() || is_front_page()) { return $content . '<div class="hatom-extra"><span class="title">'. get_the_title() .'</span> was last modified: <span class="updated"> '. get_the_modified_time('F jS, Y') .'</span> by <span class="author vcard"><span class="fn">'. get_the_author() .'</span></span></div>' ; } else { return $content; } } /* Fix "Missing Author" and "Missing Updated" issue - END */Did
September 4, 2016 at 8:44 am #1160557
ChristianModeratorHey there,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks.
September 4, 2016 at 9:33 am #1160591
Bark201ParticipantThis reply has been marked as private.September 4, 2016 at 12:40 pm #1160733
Bark201ParticipantI am getting hentry errors now, last updated and author. How do I get the author showing on all posts and hidden on pages and get the last modified or last updated in without showing in posts?
September 4, 2016 at 12:41 pm #1160734
Bark201ParticipantI think the code fixes it but it shows the last modified in posts, how do I make it hidden?
September 4, 2016 at 1:06 pm #1160745
Nabeel AModeratorHi there,
I’m not able to access your site at the moment, can you please check if it’s working on your end?
Thanks!
September 4, 2016 at 1:06 pm #1160746
Bark201ParticipantThis is what it looks like:
property="article:published_time" content="2016-08-29T05:47:41Z" /><meta property="article:modified_time" content="2016-09-04T13:36:11Z" /><metaWhy are there letters inside the date and time, T and Z? Please help.
September 4, 2016 at 1:08 pm #1160749
Bark201ParticipantI was just updating the functions.php with a different code I saw in the forum, didnt help either. It should be accessible now.
September 4, 2016 at 7:44 pm #1160928
LelyModeratorHi There,
That code you want to remove is not coming from the custom code you have added. The custom code will just add the following:
<div class="hatom-extra" style="display:none;visibility:hidden;"><span class="entry-title">blog post</span> was last modified: <span class="updated"> August 16th, 2015</span> by <span class="author vcard"><span class="fn">DDMarkets</span></span></div>This part:
property="article:published_time" content="2016-08-29T05:47:41Z" /><meta property="article:modified_time" content="2016-09-04T13:36:11Z" /><metaare meta tags. That might be coming from your plugin(might be yoast). It can be remove through plugins settings.
These link might help:
https://wordpress.org/support/topic/how-do-i-remove-time-associated-meta-tags-from-yoast-seo/
http://www.wpbeginner.com/opinion/why-you-should-not-remove-dates-from-your-wordpress-blog-posts/September 6, 2016 at 1:14 am #1162585
Bark201ParticipantThank you for your reply. The custom code is addressing the hentry but not the Article schema tags:
http://tools.seochat.com/tools/schema-article-generator/
What is currently missing from the schema tags are author and last modified date. This affects my SEO ranking in all posts. I disabled the tags I suggested and it just removed the entire Article tag, which I do not want. Please help me fix this, the errors are building up in google webmaster as a result of this.
Its the open graph article tags that I am having issues with.
September 6, 2016 at 1:27 am #1162593
Bark201ParticipantI am using all in one seo pack
September 6, 2016 at 3:18 am #1162691
Bark201ParticipantOk, I tweaked the code a little and it is showing updated and author in hentry. I am going to find out in the next few days if that fixes it.
I looked more into the Article tags errors and this is what I found as I am using all in one seo pack. I know you are not a fan of schema but any solution will help a lot:
https://wordpress.org/support/topic/json-ld-error-1/?replies=9
Note: The aticle errors are still present despite the code in functions.php. The difference is that updated and author were added to hentry so that might fix the errors in google webmaster. I would really like the errors in aricle resolved as well. I still have missing author, missing published date, headline, publisher and date modified in Article.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1160503 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
