• hello there
    i am using only the Main Index Template (index.php) for displaying specific posts. its a one page website.
    i use this to get post by id

    <?php
    $post_id = 1;
    $queried_post = get_post($post_id);
    ?>
    <div id="welcometext" align="center"> 
    
    <h2 class="postheader" align="center"><?php echo $queried_post->post_title; ?></h2>
    </div>
    <br />
    <div class="starsrow" align="center"> </div>
    
    <div class="art-postcontent">
    <?php echo $queried_post->post_content; ?>

    the problem is that the post displays the code of the plugins ([TINY-CONTACT-FORM] or [nggallery id=1]) instead of the content itself
    see it here
    https://www.circusloco.com/#contact
    thanks for any help
    mili

Viewing 1 replies (of 1 total)
  • <?php
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    $args= array(
    	'p' => 1,
    	'posts_per_page' => 1,
    	'paged' => $paged
    );
    query_posts($args);
    if ( have_posts() ) : while ( have_posts() ) : the_post();
     ..
    endwhile; else:
     ..
    endif;
    
    wp_reset_query();
    ?>
Viewing 1 replies (of 1 total)
  • The topic ‘main index page doesn’t show plugins’ is closed to new replies.