Number os views

Posted in: Newspaper
Post count: 31

Hi
My website has the collaboration of several writers and the website has been in existence for a year. When replacing the previous theme by Newspapper the number of views of the articles reset. This is normal? If so, is there any way to retrieve the views from the period before the template was modified and update?
Thanks and Regards
robgomes

Post count: 35449

Hi robgomes,
Yes, it is normal that the view counts to be reset, because those are usually custom implemented in each theme that have this option and most possible do not have the same structure in code and database.
Now our theme allow you to set the number of views manually,, go in posts and enable the custom fields -> https://i.imgur.com/NavHTFn.png after that down in post will appear the the custom field options -> https://i.imgur.com/waKZBHe.png change it -> https://i.imgur.com/NAFEi9p.png and check the results. Now this can be done only on each post in part, and I think that you want to doo it for all posts, for this use this function – https://pastebin.com/pKcWYFUt (wp-content/plugins/td-composer/legacy/Newspaper/functions.php)
The value can be changed, I set it to 1000. Enter it in the theme functions file. Refresh a post page and check if the views were updated. Then remove the function and the view should increase from the set value.
I hope this will help you!

Post count: 31

Hi Calin!

Thanks for the information and explanations and I will follow his instructions.

Best Regards

robgomes

Post count: 91

Calin
unfortunately for us “Classic editor” WP users, you keep repeating the exact same reply for “how to reset count in posts” – Using Gutenberg editor layout? To enable options, you show a 3 dot menu (top right) and Options(bottom right sidebar) to display the editor change locations. Neither of these attributes show up in Classic editor – So everyone like us, still has no clue how to enable options to reset Count!
Thanks
Kevin

Post count: 35449

Hi besthomegear,
I will briefly try to explain where they can be edited on both WordPress editors:
On the Gutenberg editor click on the 3 dots and click on performance, then select the panel tab and enabled the additional custom fields – https://i.imgur.com/2U9pgNx.pnghttps://i.imgur.com/qhuSWvq.png
For the classic editor – click on the screen option and check the custom fields – https://i.imgur.com/kkANB7L.pnghttps://i.imgur.com/KxKzobP.png
I hope this will help you!

Post count: 91

Thanks for your reply Calin,

I understand your screenshots for Classic editor – to enable Custom Fields; however, within the Screen Options, there are NO Custom field boxes to check. See my Img attached. Is this a WP admin issue on my end, or TagDiv theme setting that is off?
Kevin
Classic editor box missing

Post count: 91

In case the link for my WP admin image didn’t load on this forum correctly, here it is again. Classic Box missing

Post count: 91

Thanks, Calin
I appreciate your screenshots. Custom Fields BOX is missing from our Screen options.
Kevin

Post count: 27744

Hello,

Maybe you have a plugin which interferes with the classic editor, which hides the custom fields.
The option is the same for the classic editor https://i.imgur.com/duXah5e.png -> https://i.imgur.com/RHoAapb.png

Thank you!

Post count: 91

Thanks, Anamaria, I checked all of my plugins, even deactivating any potential interference – no changes to Screen Options – Custom Fields does not appear as an option.
The only time i have seen this issue is now, having migrated to the tagDiv Newspaper theme – Classic Editor no longer shows the Custom Fields option.
Kevin

Post count: 27744

Hello,

For me works, I think you have something which interferes with the class editor and theme.
Please contact us via email at contact@tagdiv.com and provide the following:
– admin url and credentials
– cpanel url and credentials
– a link to this topic in order to identify you

Thank you!

Post count: 242

Hello,

I have the same problem as @besthomegear , I cannot find “Custom fields” in the Gutenberg editor as you can see in the following screenshot : https://i.ibb.co/58wyzHY/screenshot.png

Is there another way to edit the number of views? Thank you!

Post count: 27744

Hello,

Do you have the acf plugin activated? Maybe this interferes.

Thank you!

Post count: 242

Hello,

Thank you for your quick answer. Yes, I do use the acf plugin, and I think that’s the problem too.
If you can fix this problem in the following update that would be great.

Thank you!

Post count: 27744

Hi,

You can disable the plugin, and after you set the view, you can activate it.

Thank you!

Post count: 242

Hello,

Thank you for the solution, I will try it, but it’s nonpractical though.

Thanks again!

Viewing 16 posts - 1 through 16 (of 16 total)
The forum ‘Newspaper’ is closed to new topics and replies.