- This topic has 24 replies, 3 voices, and was last updated 6 years, 9 months ago by Tom.
-
AuthorPosts
-
April 25, 2017 at 6:24 am #310033Tom
Hello Tom,
in my posts some of my pictures are linked to individual url. For example like this:
https://www.ledclusive.de/blog/lighting-passport-von-asensetek-im-test/china-led-spectrometer-lighting-passport-spektrum/Also I have installed one plugin for a glossary, which creates new urls.
Both leads to missing microformats concerning the “update”.
No entry in “hatom-hentry-….”Would be great to get a workaround from you.
Thanks in advance.
TomApril 25, 2017 at 9:17 am #310115TomLead DeveloperLead DeveloperHi Tom,
Could you link me to one of the glossary page as well possibly?
Thanks!
April 25, 2017 at 10:57 am #310184TomApril 25, 2017 at 2:30 pm #310268TomLead DeveloperLead DeveloperTry this:
add_action( 'generate_after_entry_title', 'tu_post_meta' ); function tu_post_meta() { if ( 'glossary' == get_post_type() || is_attachment() ) : ?> <div class="entry-meta"> <?php generate_posted_on(); ?> </div><!-- .entry-meta --> <?php endif; }
April 25, 2017 at 2:39 pm #310275TomThanks Tom,
please let me know where I should place this script.
I am not familiar with programming.
br TomApril 25, 2017 at 2:40 pm #310276LeoStaffCustomer SupportTry this method: https://docs.generatepress.com/article/adding-php/#code-snippets
April 25, 2017 at 2:57 pm #310283TomHello Leo, hello Tom,
thanks for your help.
I have installed the plugin codesnippet and have copied the code into the related field.
Not sure if I would have to do something else beside to name this snippet and note the description.Now it is installed, but it does not work while using the GSC-tool or search sourcecode for “updated”.
Have I done something wrong? It seems very easy with this plugin.or is there any opportunity to place it somewhere as a hook into the theme?
thanks for further help.
TomApril 25, 2017 at 3:00 pm #310286TomLead DeveloperLead DeveloperHave you activated the code snippet? It has an activate button when you save it.
April 25, 2017 at 3:09 pm #310287TomI have overseen this, but after activation it still does not show “update” in the source code of the page. Only in normal posts.
what else can I do?April 25, 2017 at 7:32 pm #310335TomLead DeveloperLead DeveloperAny chance you can send me temporary admin login details?: https://generatepress.com/contact/
April 26, 2017 at 9:06 am #310577TomLead DeveloperLead DeveloperAh, it looks like you might have copied the code from your email, so all of the quotations and <> characters have been converted to HTML entities.
Can you try copying and pasting directly from this topic?
April 26, 2017 at 10:05 am #310617TomHello Tom,
thanks. that was the reason.
Now it works and I can see in it in sourcecode. So GSC probably will recognize it soon as well.One last question.
Is your snippet necessary as an addon to wordpress and the plugin itself or can this implemented in one of the theme files like the functions.php.This is helpful to know if I meet this problem on other pages with other theme.
you really do a good job.
TomApril 26, 2017 at 4:03 pm #310753TomLead DeveloperLead DeveloperIt can be implemented in your child theme functions.php as well. As long as it runs at some point it will work 🙂
July 7, 2017 at 1:50 pm #345776TomHello Tom,
I need your help again.
I have used your great snippet until and it worked fine.Now I see that google is claiming “missing updated”. I don´t know what happend.
Indeed the tag is missing again.any idea?
thanks for your time.
TomJuly 7, 2017 at 7:32 pm #345861TomLead DeveloperLead DeveloperHi there,
None of the post meta is displaying in your custom post type anymore? Anything change? CPT name? Function deactivated?
-
AuthorPosts
- You must be logged in to reply to this topic.