Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Excerpts, Read more, Pagination »

[SOLVED] Showing Posts With 'Draft' Status


 
Prev Previous Post   Next Post Next
  #1  
Old Nov 29, 2009, 04:40 PM
gcarson
 
26 posts · Oct 2009
[SOLVED] Showing Posts With 'Draft' Status

Hi,

Trying to figure this out and wondering if anyone here could help. I'm looking to show my posts with draft status. I've seen some codes that work but not for exactly what I'm looking to do. Most of them will list all drafts which is great but not exactly what I want to do. I only want to show draft posts on tag pages and I only want to show drafts with that tag. So I have entered the following code after my loop in the content below the loop section. Here is one of my attempts.

Code:
<?php if ( is_tag() ) { ?>

<?php /* If there are any posts: */
if (post_status == "draft" ): ?>

<div class="sidebar-box">

    <?php
    while (have_posts()) : the_post(); ?>
        <ul>
          <li>
           <?php the_title(); ?>
          </li>
        </ul>
    <?php /* END of the LOOP */
	endwhile; ?>
<?php /* END of: If there are any posts */
else : /* If there are no posts: */ ?>
        <div>
        <ul>
          <li><?php _e('Nothing scheduled'); ?></li>
        </ul>
        </div>
    <?php endif; ?>
</div>
<?php } ?>
Right now, this only prints out 'nothing scheduled' so its not quite working right.

I also tried doing a new query but then those posts won't match the tag. Maybe I could put a statement where it only prints if it equals the tag? Not sure what's the best way here. I tried looking into the theme files but I'm not very good at following the code to see what I can do. Any help would be great
 

Bookmarks

Tags
post drafts



Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleted posts still showing pbennett Atahualpa 3 Wordpress theme 11 Aug 31, 2009 10:50 AM
css insert not showing individual posts bushtool New Versions, & Updating 9 Jul 15, 2009 06:54 PM
Error warning status bar page bottom JBWhite Atahualpa 3 Wordpress theme 0 Apr 21, 2009 11:53 AM
Posts showing up twice on category pages? michiganbasketball Atahualpa 3 Wordpress theme 1 Mar 12, 2009 04:56 PM
Categories not showing any posts paulae Atahualpa 3 Wordpress theme 2 Mar 10, 2009 06:35 AM


All times are GMT -6. The time now is 10:21 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.