Skip to content

Commit

Permalink
Fixes #241: title_length not working with text_title CT
Browse files Browse the repository at this point in the history
  • Loading branch information
cabrerahector committed Jan 11, 2020
1 parent f6f771a commit 422c357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Output.php
Expand Up @@ -319,7 +319,7 @@ private function render_post(\stdClass $post_object, $position = 1)
'img' => ( ! empty($post_thumbnail) ) ? '<a href="' . $permalink . '" ' . ($post_title_attr !== $post_title ? 'title="' . $post_title_attr . '" ' : '' ) . 'target="' . $this->admin_options['tools']['link']['target'] . '">' . $post_thumbnail . '</a>' : '',
'img_no_link' => $post_thumbnail,
'url' => $permalink,
'text_title' => $post_title_attr,
'text_title' => $post_title,
'taxonomy' => $post_taxonomies,
'author' => ( ! empty($post_author) ) ? '<a href="' . get_author_posts_url($post_object->uid != $post_id ? get_post_field('post_author', $post_id) : $post_object->uid ) . '">' . $post_author . '</a>' : '',
'views' => ( $this->public_options['order_by'] == "views" || $this->public_options['order_by'] == "comments" ) ? number_format_i18n($post_views) : number_format_i18n($post_views, 2),
Expand Down

0 comments on commit 422c357

Please sign in to comment.