Hi, I have installed the mobile plugin and activated it.
Now I set the counter key to the value of my old theme:
static $post_view_counter_key = ‘tie_views’;
The count on pageviews are working on the normal theme, on the mobile nothing is happening, it stays on 0!
What could be wrong? How to solve this.
It would nicer if there was a way to import the old views over to the newspaper theme!
On mobile theme, I receive this error on category post page:
wp booster error:
td_api_base::mark_used_on_page : a component with the ID: style5 is not set.
/www/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
wp booster error:
td_api_base::get_key : a component with the ID: style5 Key: wrap_classes is not set.
/www/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
Hi,
Indeed there is no option to import the views from a different theme. I see you managed to achieve it. On mobile theme the same view count of the post should be diusaplyed and the count will increase further. That is not a different counter
– https://www.screencast.com/t/NHHn0U5LcH
– https://www.screencast.com/t/qNdxTaTDb4lu
The same function is used – https://www.screencast.com/t/790gbzlx84T
There is an issue when trying to login from mobile devices at the moment, this will be fixed in the coming update. Sorry for the inconvenience.
Thanks
That is not happening in any of our tests. Regardless of multi-purpose plugin state, the mobile theme counter is not affected. Try reinstalling the multi-purpose plugin from the latest theme package and test again.
Deactivate all other plugins except theme plugins as a test. Clear all caching and CDN cache if used. If you use a child theme switch to the main theme.
We can take a look if these suggestions have no effect, please provide a link to your website so we can inspect the issues.
With another key counter value, the pageview counter on the mobile theme doesn’t work properly. The only thing that fixed this is renaming the key meta in the wp_postmeta table:
update wp_postmeta
set meta_key = 'post_views_count'
where meta_key = 'old_key_name'
Then everthing works fine as aspected! A simple solution to import the pageviews into the newspaper theme.