WordPress Popular Posts
[resolved] WordPress Popular Posts shorten title (3 posts)

  1. keyaspects
    Posted 3 years ago #

    Hi, what is the shortcode for shortening the title. I'm not using widgets in my sidebar so clicking the 'shorten title' checked box won't work for me. I need the php short code for shortening the title.

    I currently have the following
    <?php get_mostpopular("order_by=views&range=weekly&limit=6&stats_views=0&pages=0&stats_comments=0&wpp_start=<div>&wpp_end=</div>"); ?>

    What do I need to add?



  2. Hector Cabrera
    Plugin Author

    Posted 3 years ago #

    Hi there,

    What you're looking for is the title_length parameter. For usage and instructions, please refer to your wp-admin > Settings > WordPress Popular Posts > FAQ.

  3. keyaspects
    Posted 3 years ago #

    Hi, thanks for response.

    I've looked in the FAQ and all I see is:

    What does "Shorten title output" do?
    'If checked, all posts titles will be shortened to "n" characters. A new "Shorten title to" option will appear so you can set it to whatever you like. Disabled by default.'

    This doesn't help me at all (not really any instructions to add to shortcode), hence why I wrote a post up here. I'm not using the widget version of the plugin and the above sentence does not give me any shortcode.

    However I added the following to my code title_length=35 and it worked all ok, just incase anyone else has the same issue.

    Thanks again

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