Widget shows nothing
-
I just activated the widget on my site and noticed that nothing (exept the headline) is shown.
URL: http://www.sebald.com/?theme=sebaldfourteen
(It also happens when the theme is “really” activated, not only via Theme Test Drive.)
Any idea?
-
Does it work on the default theme? To show the views in post, you need to put in the php code. http://ww.wp.xz.cn/plugins/wp-postviews/installation/
Hi, good point. No, the widget does not work with the default theme (twentyfourteen).
Yes, I know that I have to insert the code to display the views per post/page.
Not too sure if there is any conflict on your end because I can’t reproduce the problem http://lesterchan.net/wordpress_dev/ (the widget is at the bottom)
Works for your page, works for other two pages as well.
But here, just nothing is there, see here:
<aside id="views-3" class="widget widget_views"><h1 class="widget-title">Views</h1><ul> </ul> </aside>That’s it! Also nothing in error.log of Apache.
Can I put some debug anywhere?
Yes you can, depending on what widget are you using, you can do a var_dump() on the sql results https://github.com/lesterchan/wp-postviews/blob/master/wp-postviews.php
Ok, found it. Most of the templates were empty. I filled the templates with the default data and changed where needed.
Strange as I did not touch the settings for a long time.
Maybe some templates are theme-based?
Nope the plugin is theme independent =)
The topic ‘Widget shows nothing’ is closed to new replies.