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 » FAQ - Atahualpa » General »

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

Old Oct 25, 2010, 02: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 01: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 07:30 AM
Auto Draft on Blog Home Page Won't Go Away c12281 New Versions, & Updating 9 Oct 19, 2010 08:41 AM
Post Title Showing Up As "Auto Draft" Jrdpa Center area post/pages 1 Jul 19, 2010 03:33 PM
[SOLVED] Auto Draft appears instead of post title pvelte Center area post/pages 12 Jun 21, 2010 06:04 AM
[SOLVED] Auto-draft symarch Atahualpa 3 Wordpress theme 0 Jun 20, 2010 07:14 AM

All times are GMT -6. The time now is 08:19 PM.

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