New answers tagged

0

I ended up just setting the paragraph to display:inline-block which allowed the product dimensions to flow up onto that line.


0

you may get the excerpt using: $excerpt = get_the_excerpt(); and append or prepend it as you wish


0

I'm sure if you did some more research you would find this as it's been asked many times before. If you just want all expert to return the value of 15 then you have to add something like this to your functions.php // Customize excerpt word count length function custom_excerpt_length() { return 15; } add_filter('excerpt_length', ...


0

@shanebp - yes I did that, but that shows the 55 word excerpt. I resolved this as follows .. I discovered that the excerpt is stored in the WP_Post class field post_excerpt, so I got it directly with ... $the_post = get_post(); $post_excerpt = apply_filters('the_excerpt', $the_post->post_excerpt); echo $post_excerpt; I would be happy to hear from ...


0

Have you tried using the example from the codex? if ( ! has_excerpt() ) { the_content(); } else { the_excerpt(); }



Top 50 recent answers are included