• Resolved Marcel

    (@srnty)


    I’m running a site with various page templates and a function call for WPP on the front page. I don’t want to display any posts, only the most viewed pages. Not using the widget.

    Pages that don’t make use of any page template are counted just fine, regardless if they have a parent page or not. But as soon as I select a page template for them, views aren’t counted anymore.

    I checked the database and there aren’t any new values written to the tables when pages using a page template are viewed.

    Is there any way to fix this?

    Regards,
    Marcel

    http://wordpress.org/plugins/wordpress-popular-posts/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Sorry, I can’t help you without looking at your theme’s code since it seems you’re doing non-standard stuff in there. I test my plugin with WordPress’ stock themes (Twenty Thirteen at the moment) and everything works as expected for me, so I need more details.

    Thread Starter Marcel

    (@srnty)

    I figured it out. D’oh…

    I left out the loop since I wasn’t loading dynamic content with my custom page templates.

    In case anybody else is facing this problem at some point, include the loop again as well as ‘the_content()’ call.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Views not counted for pages using page templates’ is closed to new replies.