how can I get the ( read more )sintax on text editor to work with the code bello
-
<?php function wptuts_recentpost($atts, $content=null){ global $more; // Declare global $more (before the loop). $more = 0; // Set (inside the loop) to display content above the more tag. $getpost = get_posts( array('number' => 1) ); $getpost = $getpost[0]; $return = $getpost->post_title . "<br />" . $getpost->post_content . "…"; return $return; } add_shortcode('newestpost', 'wptuts_recentpost'); ?>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘how can I get the ( read more )sintax on text editor to work with the code bello’ is closed to new replies.