• Resolved Rhand

    (@rhand)


    I am using a custom theme with shortening of the title by 40 chars. But the code is not working. The amount of default characters have not been set. What am I missing here?

    {
        "name": "IMWZ",
        "description": "A very compact popular posts list.",
        "authors": [
            {
                "name": "Hector Cabrera",
                "email": "[email protected]",
                "role": "Creator / Main Developer"
            }
        ],
        "config": {
            "title" : "Trending",
            "shorten_title": {
                "active": true,
                "length": 40,
                "words": false
            },
            "post-excerpt": {
                "active": false
            },
            "thumbnail": {
                "active": false
            },
            "rating": false,
            "stats_tag": {
                "comment_count": false,
                "views": false,
                "author": false,
                "date": {
                    "active": false
                },
                "taxonomy": {
                    "active": false,
                    "name": "category"
                }
            },
            "markup": {
                "wpp-start": "<ul class=\"wpp-list wpp-tiny\">",
                "wpp-end": "</ul>",
                "post-html": "<li class=\"{current_class}\"><div class=\"wpp-item-data\">{category}</div> {title}</li>"
            }
        }
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @rhand,

    Unfortunately that’s a bug in the WordPress Popular Posts block so thanks for the report.

    I just fixed it on the Github version of the plugin (see d34600e) since it was a quick thing. However, I’m still in the middle of making other changes to the plugin and so won’t release a new version just yet so you might want to use the Github version for the time being or you could just wait for the next official release.

    Thread Starter Rhand

    (@rhand)

    I see @hcabrera . Yeah, well, I can adjust things manually for now I guess and wait for an update. Just wanted to make sure I was not making any mistakes here.

    Did check the fix and do see it is a small tweak. May use the Github version, may wait. Either way thanks for the heads up!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘shorten title not working’ is closed to new replies.