- This topic has 24 replies, 3 voices, and was last updated 3 years, 2 months ago by Tom.
July 7, 2017 at 11:39 pm #345922Tom
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 TomJuly 8, 2017 at 12:47 am #345946TomLead DeveloperLead Developer
In 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?July 9, 2017 at 1:18 am #346306Tom
oh that is strange. There are pages, which works
and e.g. this one hasn´t have “updated” in content.
now it has. I just have published this page again. Strange.
Another page, still untouched with no “updated” in content is this page:
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 #346449TomLead DeveloperLead DeveloperJuly 9, 2017 at 12:02 pm #346540Tom
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 #346807TomLead DeveloperLead Developer
It 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?July 10, 2017 at 12:27 am #346815Tom
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.
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 TomJuly 10, 2017 at 9:35 am #347082TomLead DeveloperLead DeveloperJuly 10, 2017 at 9:46 am #347098Tom
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 #347438TomLead DeveloperLead Developer
The 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
- You must be logged in to reply to this topic.