Support » Plugins and Hacks » query pages and posts with shortcodes

  • Resolved infohowdy

    (@infohowdy)


    Hello, for query a page by id I use

    $page_id = 10;
    $paget_data = get_page( $page_id );
    echo $page_data->post_content;
    edit_post_link(), '<span class="edit-link">', '</span>', $page_id )

    This shortcodes inside the content does not works.

    I alredy try to query the page by the samples here http://codex.wordpress.org/Function_Reference/query_posts

    query_posts( "p=10" );
    while ( have_posts() ) : the_post();
    the_content();
    endwhile;
    wp_reset_query();

    but I get nothing.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘query pages and posts with shortcodes’ is closed to new replies.