-
▼
2012
(336)
-
▼
June
(26)
- How to Remove Google Analytics Code From a WordPre...
- How to Add a Blogroll in WordPress
- How to Change Order of a Wordpress Header Menu
- How to Change WordPress Media Directories
- How to Use WordPress Tags in Clouds
- How to Wipe My Database of WordPress
- How to Monitor the Health of a WordPress Database
- How to Move a Calculator From PHP to WordPress
- How to Create an Anchor Link in WordPress
- How to Allow Others to Post to a WordPress Blog
- How to Change a WordPress Banner
- How to Integrate a Forum in WordPress
- How to Restore a WordPress Backup
- How to Change My WordPress Theme From My GoDaddy A...
- How to Make Your WordPress Site on an iPad
- How to Remove the 'Leave a Comment' Function on My...
- How to Widgetize the WordPress Body
- How to Move the WordPress Index.php From a Subdire...
- How to List Posts That Are Pending Review in WordP...
- How to Make a Three
- How to Remove and Reinstall WordPress
- How to List Story Tags in WordPress
- How to Change Text Color on the WordPress Blueberr...
- How to Reset Your Password for WordPress in MySQL
- How to Delete Home From WordPress
- How to Download E
-
▼
June
(26)
adsense
How to List Posts That Are Pending Review in WordPress
1. Log in to the WordPress dashboard, go to 'Appearance' and click the 'Editor' link. Locate the template where you want to add the list of pending posts and click its link to load the file in the theme editor.
2. Create a new query of the WordPress database:$query = new WP_Query();Use any name for the variable; 'query' works well but any name will work.
3. Add parameters for the query between the parentheses. Set 'post_status' to 'pending' to get pending posts. Use 'ignore_sticky_posts=1' to keep sticky posts -- posts set to always appear at the top of the blog index -- out of your list:$query = new WP_Query('post_status=pendingignore_sticky_posts=1');
4. Start a 'While' loop to display posts returned by the query:while ($query->have_posts()) : $query->the_post();
5. Close the block of PHP code with an ending delimeter tag -- ?> -- and add this code to output a link to each pending post:
' title='
'>
6. Open a new pair of PHP delimeter tags and write the next block of PHP code between them. Close your 'While' loop with 'endwhile' and use 'wp_reset_postdata()' to clear the query.
2:41 AM | Filed Under | 0 Comments
Comments
Popular Posts
-
1. Log in to your Weebly account. 2. Click 'Theme Editor.' 3. Click on the 'Design' tab. 4. Select 'Edit CSS/HTM...
-
1. Sign up for a publisher account at Bidvertiser. Submit basic contact information and confirm your email address to get started. 2. Lo...
-
1. Log in to your WordPress dashboard. 2. Open the 'Appearance' section on the left side of the WordPress dashboard and then cli...
-
1. Open your WordPress Dashboard in your preferred browser. It is accessed at the '/wp-admin' location of your site. For example, ...
-
Facebook Widget 1. Create a Facebook fan page for your blog, if you don't already have one. You will have to manually share content wi...
-
1. Download and install the WordPress for BlackBerry app via BlackBerry App World. Download the version that corresponds with your BlackBe...
-
1. Go to your WordPress blog's administrative control panel. 2. Click the 'Settings' button on the left-side navigation menu...
-
1. Click the 'Add Contact' button on the 'Add New Post' page. This opens the 'Add a Contact Form' page. 2. Click...
-
1. Register an account with Amazon Web Services Cloud. If you have an existing Amazon account, enter your email address in the appropriate...
-
1. Log into your WordPress.com account using your user name and password. 2. Hover your cursor over the 'My Blogs' tab at the to...
Post a Comment