0
votes
1answer
56 views

How can I add in post's the text “No content”

How can I add in a post the words "No content available" if nothing is ritten Example: If there is no text added, i want to get "No content available" automated in my template. I want to get for a ...
0
votes
2answers
3k views

Customizing get_the_excerpt() to specific length and “Read More” output.

I am costuming a template. There is a list grabbing the introduction from the first 1-2 paragraphs (all the articles from a category). If I set the excerpt to 295 words, sometimes the list grabs ...
2
votes
3answers
2k views

How to display only an excerpt of the content with custom post types?

<?php /* Template Name: second */ ?> <?php get_header(); ?> <?php query_posts(array('post_type'=>'event')); ?> <?php if(have_posts()) while(have_posts()) : the_post(); ...
1
vote
1answer
444 views

Mass update excerpt

I'm using a photoblog theme which upon creating a new post it takes the post attachment and saves a modified "img src" string into the excerpt field. It then uses <?php the_excerpt(); ?> to ...
0
votes
1answer
330 views

Force WordPress to NOT display the manual excerpt

I'm forced to use manual excerpts on a number of my posts to integrate them with a shortcode plugin. However, this is interfering with how they're being displayed on an archive page (using a page ...
1
vote
1answer
686 views

Custom excerpt function re-factoring

This may be more of a php best practices question, but here goes... I am using a custom excerpt trim function: function new_wp_trim_excerpt($text) { // Fakes an excerpt if needed global $post; ...