I have added a new plugin which requires me to make a page template in wordpress. Following are the steps mentioned by I am confused about the thing marked in red. * You'll need to create a new template file entitled "members.php" ** To do this copy your file entitled single.php and name it members.php. ** Place this code `<?php /* Template Name: Members */ ?>` on the first line of the file. ** Remove the code that prints the single post to the page and replace it with this code: `<?php $members = new tern_members;$members->members(array('search'=>true,'pagination'=>true,'sort'=>true));?>` ** Upload the new file to the server. I don't know which code prints the single post Can anyone help on this..
Can you copy and paste your single.php file into a text file, upload it somewhere and link to it so we can see it please? Either that or link to whatever theme you;re using. We can then tell you which line(s) to change. Also what plugin are you referencing. Please remember specifics always help when asking questions and asking for support.
Thanks for the response.. here is my single.php file... The theme I am using is called Obscure and the plugin is Members. <?php get_header(); ?> <div id="main"> <div id="content-body" class="clearfix"> <!-- post --> <div id="posts" class="left"><br/> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <div class="post"> <div class="post-head clearfix"> <h1 class="post-heading left"><?php the_title(); ?></h1> <h1 class="post-meta right"><?php the_time('F jS, Y') ?></h1> </div> <div class="post-body clearfix"> <div class="post-content-full clearfix"> <?php if( get_post_meta( $post->ID, "image_value", true ) ) : ?> <div class="post-image"><img src="<?php bloginfo( 'template_directory' ); ?>/timthumb.php?src=<?php echo get_post_meta( $post->ID, "image_value", true ); ?>&w=590&h=280&zc=1" border="0" alt="<?php the_title(); ?>" /></div> <?php endif; ?> <?php the_content(); ?> </div> <div class="post-bookmark clearfix"> <a class="rss" href="<?php bloginfo('rss2_url'); ?>" title="Subscribe to RSS"></a> <a class="digg" href="http://www.digg.com/submit?phase=2&url=<?php the_permalink() ?>&title=<?php the_title(); ?>" title="Add to Digg"></a> <a class="delicious" href="http://del.icio.us/post?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" title="Add to Delicious"></a> <a class="stumbleupon" href="http://www.stumbleupon.com/submit?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" title="Add to Stumbleupon"></a> <a class="technorati" href="http://www.technorati.com/faves?add=<?php the_permalink() ?>" title="Fave This"></a> <a class="twitter" href="http://twitter.com/<?php echo get_option('obs_settings_twitter'); ?>" title="Follow me on twitter"></a> </div> </div> <div class="post-foot clearfix"> <ul class="post-meta"> <li class="meta-author">By <?php the_author('') ?> |</li> <li class="meta-category"><?php the_category(', ') ?></li> </ul> </div> <div id="comments"> <h3>Comments + Pingbacks + Trackbacks</h3> <div class="comment-box"> <?php comments_template(); ?> </div> </div> <div class="post-navigation clearfix"> <div class="left"><?php previous_post_link('← %link') ?></div> <div class="right"><?php next_post_link('%link →') ?></div> </div> </div> <?php endwhile; endif; ?> </div> <!-- sidebar --> <div id="sidebar" class="right"> <?php get_sidebar(); ?> </div> </div> </div> <?php get_footer(); ?> PHP:
what about ur custom template is, i do not know about plugin but can do manually, post all the features u need in that template.
I just want to do this as the plugin says.. * You'll need to create a new template file entitled "members.php" ** To do this copy your file entitled single.php and name it members.php. ** Place this code `<?php /* Template Name: Members */ ?>` on the first line of the file. ** Remove the code that prints the single post to the page and replace it with this code: `<?php $members = new tern_members;$members->members(array('search'=>true,'pagination'=>true,'sort'=>true));?>` ** Upload the new file to the server. I want to know how to remove "the code that prints the single post"... ... i mean which is that code... so tht i can delete it and replace it...