Skip to main content
edited tags
Link
fuxia
  • 107.1k
  • 38
  • 254
  • 458
Tweeted twitter.com/#!/StackWordPress/status/43496793337630720
deleted 10 characters in body
Source Link
Zach Shallbetter
  • 1.2k
  • 7
  • 22
  • 45

I'm using custom posts and valuesfields to pull a secondary description. I'd like to use the built in WordPress truncate but can't seem to figure it out.

$desc = get_post_meta($post->ID, "youtube-desc", true);
echo '<p>' . $desc . '</p>';

Any help would be appreciated.

I'm using custom posts and values to pull a secondary description. I'd like to use the built in WordPress truncate but can't seem to figure it out.

$desc = get_post_meta($post->ID, "youtube-desc", true);
echo '<p>' . $desc . '</p>';

Any help would be appreciated.

I'm using custom fields to pull a secondary description. I'd like to use the built in WordPress truncate but can't seem to figure it out.

$desc = get_post_meta($post->ID, "youtube-desc", true);
echo '<p>' . $desc . '</p>';

Any help would be appreciated.

Source Link
Zach Shallbetter
  • 1.2k
  • 7
  • 22
  • 45

Truncating custom fields

I'm using custom posts and values to pull a secondary description. I'd like to use the built in WordPress truncate but can't seem to figure it out.

$desc = get_post_meta($post->ID, "youtube-desc", true);
echo '<p>' . $desc . '</p>';

Any help would be appreciated.