• Hi All,
    I’m working on a site and it’s pulling the excerpt for a post which is causing there to be no breaks in the text. The client wants to show the natural breaks, but I’m not familiar with the coding for this theme.

    These are the arrays the theme calls. Does anyone know how to add one for the post?

    $arr[$i]["title"] = truncate_title(50,false);
    $arr[$i]["title_small"] = truncate_title(25,false);
    
    $arr[$i]["fulltitle"] = truncate_title(250,false);
    
    $arr[$i]["excerpt"] = truncate_post(260,false);
    $arr[$i]["excerpt_small"] = truncate_post(80,false);
    
    $arr[$i]["tagline"] = get_post_meta($post->ID, 'Tagline', $single = true);
    $arr[$i]["permalink"] = get_permalink();
    
    $arr[$i]["thumbnail"] = get_thumbnail($width,$height,'thumb',$arr[$i]["fulltitle"],$arr[$i]["tagline"]);
    $arr[$i]["thumb"] = $arr[$i]["thumbnail"]["thumb"];
    $arr[$i]["thumbnail_small"] = get_thumbnail($width_small,$height_small,'',$arr[$i]["fulltitle"],$arr[$i]["tagline"]);
    $arr[$i]["thumb_small"] = $arr[$i]["thumbnail_small"]["thumb"];
    
    $arr[$i]["use_timthumb"] = $arr[$i]["thumbnail"]["use_timthumb"];
Viewing 2 replies - 1 through 2 (of 2 total)
  • That sure makes WordPress look complicated…

    Why not put some text in the “excerpt” field so the tags don’t get stripped? …or maybe I don’t understand what you are trying to accomplish.

    http://codex.ww.wp.xz.cn/Function_Reference/the_excerpt

    Thread Starter johnpwooton

    (@johnpwooton)

    Yeah, I agree that the code makes it complicated, however, I think it’s trying to make use of the array functions that pull the data.

    The problem is that I don’t have any text in the excerpt field on the post. Somehow, this theme is auto generating the excerpt.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Need help with a theme’ is closed to new replies.