WordPress Popular Posts
[resolved] [Plugin: WordPress Popular Posts] Popular Posts Displays the same title as the Current Post title (7 posts)

  1. drayks
    Posted 4 years ago #

    Every popular Post in the list Display the exact same title as the current post being viewed.


    Any idea?



  2. Hector Cabrera
    Plugin Author

    Posted 4 years ago #

    Hi drayks,

    Just checked your URL and didn't notice that.

  3. drayks
    Posted 4 years ago #

    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

  4. Hector Cabrera
    Plugin Author

    Posted 4 years ago #

    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.

  5. drayks
    Posted 4 years ago #

    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".

  6. Hector Cabrera
    Plugin Author

    Posted 4 years ago #

    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.

  7. drayks
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Popular Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic