Custom Post Type – Calling up content
-
I am new to php and have tried various means of calling up my custom posts to display on a page with a cut off of 150 words before the read more kicks in. However, I am getting the entire post to display, which i guess is better than nothing.
I am using the code below and could someone please help tweak it so it does what I want.
echo ‘<h3>’ . get_the_title() . ‘</h3>’;
echo ‘<p class=”pad10″>’ . wp_trim_words( the_content(), 150 ) . ‘</p>’;
echo ‘<p class=”farmer-more” style=”display:inline”>ID) . ‘”>’ . ‘Read More »‘ . ‘</p>’;Thank you.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Custom Post Type – Calling up content’ is closed to new replies.