- This topic has 24 replies, 3 voices, and was last updated 5 years, 7 months ago by
Tom.
-
AuthorPosts
-
July 7, 2017 at 11:39 pm #345922
Tom
Hi Tom,
thats really strange.
I have added the code by using the plugin code-snippet and it works from the beginning. I checked this again. the plugin is still activated and inside the snippet is activated and also the code is unchanged.I was so happy and have seeing the numbers in search console going down and was close to zere (remaining 9) .
NOw it is rising up and will take several months to get down again.HOpe I can solve the problem soon.
HOw about the idea to add this function inside your theme?br Tom
July 8, 2017 at 12:47 am #345946Tom
Lead DeveloperLead DeveloperIn most cases, people don’t want this kind of post meta in their custom post types, so it’s best handled on a per-user basis where it’s necessary.
Can you link me to a page where the meta data should be showing up?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJuly 9, 2017 at 1:18 am #346306Tom
Hello Tom,
oh that is strange. There are pages, which works
https://www.ledclusive.de/blog/glossar/ledon/and e.g. this one hasn´t have “updated” in content.
https://www.ledclusive.de/blog/glossar/farbkonsistenz/
now it has. I just have published this page again. Strange.Another page, still untouched with no “updated” in content is this page:
https://www.ledclusive.de/blog/glossar/cri-farbwiedergabeindex/Workaround could be now to open all my articles and republish them again.
This was not neccessary in the past.Concerning your anser: “most people do not want meta data….”
how about the idea to make it as an option in setup menu?Thanks again for your help. I really appreciate this.
TomJuly 9, 2017 at 9:30 am #346449Tom
Lead DeveloperLead DeveloperSo it’s working again now?
It’s hard to add as an option, as I can’t guess CPT names etc..
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJuly 9, 2017 at 12:02 pm #346540Tom
Hello Tom,
no sorry it is not working yet as before.
I need to open every post and resave it again.That is strange. So I tried to put into function.php of the theme.
Unfortunately it failed, because I do not know how.
My trials lead to broken website. So I gave up.I do not have this skills.
Would you be so kind to let me know, how to add into functions.php or another theme-file.
Many thanks for your great support.
TomJuly 10, 2017 at 12:21 am #346807Tom
Lead DeveloperLead DeveloperIt shouldn’t matter where you add it (Code Snippets, child theme functions.php file, custom plugin file) as long as the code runs.
I’m not sure why saving the post would initiate the PHP – perhaps the check for the custom post type isn’t working..
Can you link me to a post where it’s not working?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJuly 10, 2017 at 12:27 am #346815Tom
Hi Tom,
i just thought that the code snippet maybe work different as in the functions.php or so.
You asked for a link, where it is not working.
it is the same as in one of the post befofe.Not working at this page as example.
https://www.ledclusive.de/blog/glossar/cri-farbwiedergabeindex/If i would open the post in backend and save again without any changes, then it will work.
In such things I am that helpless and happy you take your time to help.
br Tom
July 10, 2017 at 9:35 am #347082Tom
Lead DeveloperLead DeveloperAh, well wouldn’t that be because the post has never been updated? Therefore it would be missing the updated meta data.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJuly 10, 2017 at 9:46 am #347098Tom
Hello Tom,
this is strange. While creating a post I many times press the button update my changes until are finished. I can say, that no one of my posts get online first time and never get updated.Just now I have checked the number of revisions: 3
So at least there are two updates.
Or do I have a wrong understanding of “updates”At the moment I am really confused.
July 11, 2017 at 12:10 am #347438Tom
Lead DeveloperLead DeveloperThe updated HTML should appear after the first time you hit the Update button (instead of Publish).
Looking at the post you said isn’t working, I am actually seeing the HTML there: https://www.screencast.com/t/kDKA4kSsMgK
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.