I like to output and style in a shortcode, but the content that is get is the content of a page, so it's style like that
<p>2012-12-12</p>
<p>2012-6-23</p>
<p>2012-7-3</p>
i like to be able to have ONLY the value date in a array to be able to output it in a unorder list after
how do i do that (strip the p and get it into an array ?
some code :
//Add a SHORTCODE to get date listing
add_shortcode ('getdate','get_date_listing');
function get_date_listing ($att) {
$req_id = 901;
$post = get_page($req_id);
$content = apply_filters('the_content', $post->post_content);
$contentarray = explode( '\n', $content );
echo ($contentarray[0]);
//var_dump ($contentarray);
//return $content;
}