Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » FAQ - Atahualpa » General »

How do I prevent Auto Draft from populating the Atahualpa Post/Page Options?

Old Oct 25, 2010, 01:20 PM
lmilesw's Avatar
10,176 posts · Jul 2009
Central New York State USA
Edit the functions.php (in the Atahualpa theme folder)
At about line 603 replace
$title = $post_id->post_title;
with the following
$title = ($post_id->post_title !== 'Auto Draft') ? $post_id->post_title : '';

The line you are changing is right after
$thePostID = $post->ID;
$post_id = get_post($thePostID);

So currently the three lines that are there look like
$thePostID = $post->ID;
$post_id = get_post($thePostID);
$title = $post_id->post_title;

And what should be there after the change is
$thePostID = $post->ID;
$post_id = get_post($thePostID);
$title = ($post_id->post_title !== 'Auto Draft') ? $post_id->post_title : '';

The changes above will only prevent the Auto Draft from happening in the future and will not remove any Auto Draft entries. To get rid of those you will need to get into your database. If you are not clear on what you are doing though don't do anything. As always do a backup before making any changes.

If you are using Atahualpa with another language textstrings please take that into account as Auto Draft would be something different for you. For example in Danish "Auto Draft" would be "Automatisk kladde".
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.

Last edited by lmilesw; Jun 5, 2011 at 12:46 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Headline on post page displays as "Auto Draft" cytaylor Post-Kicker, -Byline & -Footer 33 Apr 17, 2011 06:30 AM
Auto Draft on Blog Home Page Won't Go Away c12281 New Versions, & Updating 9 Oct 19, 2010 07:41 AM
Post Title Showing Up As "Auto Draft" Jrdpa Center area post/pages 1 Jul 19, 2010 02:33 PM
[SOLVED] Auto Draft appears instead of post title pvelte Center area post/pages 12 Jun 21, 2010 05:04 AM
[SOLVED] Auto-draft symarch Atahualpa 3 Wordpress theme 0 Jun 20, 2010 06:14 AM

All times are GMT -6. The time now is 02:20 AM.

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