WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: WordPress Popular Posts] Popular Posts Displays the same title as the Current Post title

[Resolved] [Plugin: WordPress Popular Posts] Popular Posts Displays the same title as the Current Post title

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

    @hcabrera

    Hi drayks,

    Just checked your URL and didn’t notice that.

    Yeah i fixed it.

    Im not sure how, i just comented this line out from the widget code

    $tit = apply_filters(‘the_title’, $tit);

    Im not usre what it does but it looked suspicious 🙂
    –line 1315 wordpress-popular-posts.php

    Thanks for the reply

    Plugin Author Hector Cabrera

    @hcabrera

    That line simply strips down HTML code and other stuff that should not be in the title. Odd. I’m not able to reproduce that, either.

    It only happens on the post page, on any other page it works.

    It might be a conflict with the template, because it does alot of custom stuff to the contet before it prints it.

    Its like the plugin is using the same Variable for the titles (in the html strip part) with the Main Post Title Variable. (Protected Variable?)

    If the main posts Title is “Hello” then all of the popular Post Titles in the sidebar say “Hello”.

    Plugin Author Hector Cabrera

    @hcabrera

    Hmm that could explain it. Would need to check theme’s code to find out, however it’d be probably easier to switch to a different one for a second and see if the problem persists.

    Yeah, i would do that but its not my website, anyway stripping the tags from the title has solved another problem.

    Some titles had the &amp tag in it, and stripping that caused some problems with some titles.

    Im pretty sure it has something to do with a common Global variable.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] [Plugin: WordPress Popular Posts] Popular Posts Displays the same title as the Current Post title’ is closed to new replies.