For example, here on this dev site (LINK) you will find 3 testimonials at the bottom of the page that have the “more_text” call plus the [Strong read_more] shortcode below it. Is it possible to get all those links to point HERE instead?
https://www.ads-software.com/plugins/strong-testimonials/
]]>Looking to make custom read more text for one of my categories. I have a category for videos and instead of “read more” I’d like the text to read “Watch The Video” only on that category.
See category page here: https://www.goatsontheroad.com/category/goat-shows/
I’ve read this post on the forum here: https://www.ads-software.com/support/topic/showing-custom-read-more-on-specific-category?replies=3
I added the code to my functions.php file and got a fatal error.
Please help!
]]>I have the following code whereby I have a category page with about 5 article excerpts. Each excerpt have a heading, pic and a string of text with 35 word limit. I have added a ‘read more’. It it currently outside of the paragraph. I however want to include the read more at the end of the string. I am new to PHP so I am not sure how to place it.
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<?php
ob_start();
the_content('Read the full post',true);
$postOutput = preg_replace('/<img[^>]+./','', ob_get_contents());
ob_end_clean();
?>
<?php
$excerpt = $postOutput;
$order = array("<p>", "</p>");
$replace = '';
#$newstr = str_replace($order,$replace, $excerpt);
#$newstr = strip_tags($newstr);
$newstr = strip_tags($excerpt);
echo'<p>'.string_limit_words($newstr,35) .'</p>';
?>
<a href="<?php the_permalink(); ?>">...read more</a>
I appreciate your help.
Thanks.
]]>I am relatively new to PHP and need help with the following. On the category pages there are a few except on each page. There is the title (which can be clicked to the full article), followed by the text excerpt of 35 words but it just cuts there. I want to add a read more at the end so readers can click that to read more. Here is the code without the ‘…read more’.
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<?php
ob_start();
the_content('Read the full post',true);
$postOutput = preg_replace('/<img[^>]+./','', ob_get_contents());
ob_end_clean();
?>
<?php
$excerpt = $postOutput;
$order = array("<p>", "</p>");
$replace = '';
#$newstr = str_replace($order, $replace, $excerpt);
#$newstr = strip_tags($newstr);
$newstr = strip_tags($excerpt);
echo '<p>'. string_limit_words($newstr,35) .'</p>';
?>
Thanks in advance for your assistance.
J.
]]>Currently I’m using the following to set a limited number of words for my excerpts.
<?php if ($post->post_excerpt != "" ) {the_excerpt();}else {the_content_rss('', FALSE, '', 40);}?>
Is it possible to include with php script to make each post link to it’s respective full-post page?
]]>Currently I’m using the following to set a limited number of words for my excerpts.
<?php if ($post->post_excerpt != "" ) {the_excerpt();}else {the_content_rss('', FALSE, '', 40);}?>
Is it possible to include with php script to make each post link to it’s respective full-post page?
]]>