WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
[resolved] $wp_query->post_count; not working (4 posts)

  1. clinton4
    Member
    Posted 2 years ago #

    Hi,

    I installed and uninstalled this plugin, and noticed that $wp_query->post_count; no longer returns the correct count. Could this be related to this plugin?

    http://wordpress.org/extend/plugins/wp-pagenavi/

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    what is the total code of the problem template?

    please use the pastebin - see http://codex.wordpress.org/Forum_Welcome#Posting_Code

    where are you checking $wp_query->post_count in relation to the wp-pagenavi code?

    I installed and uninstalled this plugin

    is the post_count working without the plugin installed?

  3. clinton4
    Member
    Posted 2 years ago #

    Hi,

    I was trying to use it in a template page

    http://pastebin.com/ubHLLaLs

    I don't know if the problem is related to this plugin, but i noticed the problem after i installed this plugin. I have removed the plugin now and $wp_query->post_count; is still not working.

  4. clinton4
    Member
    Posted 2 years ago #

    I found the plugin that was related to the problem, it was http://wordpress.org/extend/plugins/wp-use-parent-template/ and not this one.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic