WordPress.org

Forums

WordPress Popular Posts
[Plugin: WordPress Popular Posts] Titles not fully displayed (4 posts)

  1. btmash
    Member
    Posted 4 years ago #

    Currently, wordpress allows you to place inline html into the titles so a title like 'This is my Super post' would show up with the Super part of it emphasized. The older version of WordPress Popular Posts actually had it functioning in this manner but the new version does not. I would that a fix from around line 638 to use:

    $tit = get_the_title($wppost->ID);

    seems to fix the issue. I know there is title shortening going on but that may be a way to fix up the title. (or by using apply_filter).

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

  2. Héctor Cabrera
    Member
    Plugin Author

    Posted 4 years ago #

    Hi btmash,

    The problem with your suggestion is that you're using an extra query to get info that was already retrieved by my plugin. I'll try a few ideas and post back with a fix so you can try it out for me, ok?

  3. btmash
    Member
    Posted 4 years ago #

    Absolutely :) I used get_the_title as my workaround (and realized its not the most optimal way hence mentioning the apply_filter stuff) and would be happy to test out a better solution :D

  4. Héctor Cabrera
    Member
    Plugin Author

    Posted 4 years ago #

    Hi!

    I've published a beta version of my plugin which fixes a few things, including HTML in post titles. Wanna try it?

    Download it here.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic