WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. keyaspects
    Member
    Posted 1 year 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?

    Thanks

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

  2. H├ęctor Cabrera
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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

About this Topic