Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The title_length parameter doesn't seem to work with {text_title} #241

Closed
cabrerahector opened this issue Jan 9, 2020 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@cabrerahector
Copy link
Owner

Describe the bug

The title_length parameter doesn't work with {text_title}. If you switch it with {title} then the title gets trimmed as expected.

To Reproduce

$args = array(
    'limit' => 5,
    'range' => 'all',
    'post_html' => '<li class="list-group-item"><a class="h6 h6-md h6-lg" href="{url}">{text_title}</a></li>',
    'title_length' => 5
);
wpp_get_mostpopular($args);

Expected behavior

Title should be shortened in both cases.

Environment:

  • WordPress version: 5.3.2
  • PHP version: 7.2
  • Plugin version: 5.0.1
@cabrerahector cabrerahector self-assigned this Jan 9, 2020
@mrnasil
Copy link

mrnasil commented Jan 11, 2020

Thanks.

@cabrerahector cabrerahector added this to the 5.0.2 milestone Jan 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants