|
#1
Jun 20, 2010, 08:12 PM
|
|
Headline on post page displays as "Auto Draft"
I just downloaded 3.4.9 version and trying to get the headline to render properly on the post page.
The headline renders on the index page, but not on the actual post page. I figured out how to get the kicker to display but underneath it are the words "Auto Draft" then under that the author and date is displayed.
How do I correct this?
|
#2
Jun 21, 2010, 04:01 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
first I suggest you use 3.5.1 ( http://wordpress.bytesforall.com/?p=920
second search the forums, this has been answered already
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#3
Jun 21, 2010, 12:06 PM
|
|
I think it has nothing to do with atahualpha theme. I am using ATA 3.5.1 and it continuous created a new 'Auto Draft' to post table every time no matter what I update, save or do not save the page. Turing off post/page option doesn't solve this issue. I think it is related to wordpress 3's new feature auto-draft, I just don't know how to solve it.
Last edited by johanM; Jun 21, 2010 at 12:38 PM.
|
#4
Jun 21, 2010, 02:33 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
johanM:
Do the posts that this is happening to have any custom fields starting with 'bfa'?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#5
Jun 21, 2010, 06:45 PM
|
|
Sorry, I'm not a developer so your question is difficult to answer. Can you restate in laymen's terms please?
|
#6
Jun 21, 2010, 06:50 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
Go edit one of your posts that exhibits this issue
Look below the area you type the post, you may see an area of custom fields.
If you see the custom fields, do any start with bfa?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#7
Jun 22, 2010, 11:16 PM
|
|
yep.
bfa_ata_body_title
'Auto Draft' is in the 'value' field. So I deleted it and now my headline shows up.
Does that fix the problem indefinitely or will I have to check w/ every post?
Thanks so much!
|
#8
Jun 22, 2010, 06:28 PM
|
|
Quote:
Originally Posted by cytaylor
Sorry, I'm not a developer so your question is difficult to answer. Can you restate in laymen's terms please?
|
Me too - I've read through several posts in the forum but I'm afraid I'm terribly confused. I just want to be able to post to my blog with the actual title again. Also I've uploaded the 3.5.1 version to my host but can't figure out why it's not activating?
Thanks so much for your time and any assistance.
ETA: Finally, figured it out... what worked for me was figuring out how to upgrade to 3.5.1 (if it would have been a bear it would have bit me), and then deleting the custom fields at the end of the offending post that had "bfa". Thank you.
Last edited by jessrip; Jun 22, 2010 at 06:38 PM.
|
#9
Jun 22, 2010, 11:30 PM
|
|
"ETA: Finally, figured it out... what worked for me was figuring out how to upgrade to 3.5.1 (if it would have been a bear it would have bit me), and then deleting the custom fields at the end of the offending post that had "bfa". Thank you."
So do tell about activating 3.5.1. I'd like to unzip it too but haven't a clue. :-)
|
#10
Jun 21, 2010, 06:51 PM
|
|
Nope. I meant there is NO effects on bfa_meta data unless the post/page has been saved AND the title is untouched.
The first post title 'Auto Draft', in fact, is created at the same time whenever a 'new page' created and wp will give a new post id to that empty data, when I change that 'default' title, and click 'update', it changed, but wp 3, created another empty line of 'Auto Draft' in the post table, following every update, it created another one...and so on.
a little research here
wp add to 3.0 on purpose, see http://core.trac.wordpress.org/ticket/11889
Quote:
- creates a post with post_status=auto-draft
- First auto- or manual save turns it into a real draft
- when auto-drafts are created, it deletes ones older than one week
- you now always have a post ID on the post edit screen, which fixes all those attachment- and meta-related bugs. No more fetching new nonces. No more negative post IDs.
|
and http://wordpress.org/support/topic/411355
Quote:
Auto drafts are what is created when you first visit the edit page so as to ensure any action you take on the page gets correctly associated with the post.
Previously there were issues if you tried to upload images before setting any other attributes on a post and thereby creating a draft post.
On save it will become a real draft and after a while the old ones will be deleted.
|
To skip with save it as 'Auto Draft', you can made a little modification on the ata's function.php to remove that 'Auto Draft', the funny title will be gone as wished, but this data still create on the db table.
Code:
(template_dir/function.php, about line 603)
$title = ($post_id->post_title !== 'Auto Draft') ? $post_id->post_title : '';
Last edited by johanM; Jun 21, 2010 at 07:10 PM.
Reason: period
|
#11
Jun 22, 2010, 11:58 AM
|
|
|
|
10,176 posts · Jul 2009
Central New York State USA
|
|
I was getting this same issue on all my WP 3 sites. johanM's solution fixed it.
__________________
~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.
|
#12
Jun 28, 2010, 02:33 PM
|
|
Quote:
Originally Posted by johanM
....
To skip with save it as 'Auto Draft', you can made a little modification on the ata's function.php to remove that 'Auto Draft', the funny title will be gone as wished, but this data still create on the db table.
Code:
(template_dir/function.php, about line 603)
$title = ($post_id->post_title !== 'Auto Draft') ? $post_id->post_title : '';
|
Where do you put the mod exactly? Like before / after which lines? I've edited my functions.php file before and depending on what version of atahualpa you're using, line 603 is probably going to be different.
Thanks in advance for the help!
|
#13
Jun 28, 2010, 07:50 PM
|
|
|
|
10,176 posts · Jul 2009
Central New York State USA
|
|
In functions.php replace
HTML Code:
$title = $post_id->post_title;
with
HTML Code:
$title = ($post_id->post_title !== 'Auto Draft') ? $post_id->post_title : '';
__________________
~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.
|
#14
Jan 21, 2011, 01:44 PM
|
|
Quote:
Originally Posted by johanM
Nope. I meant there is NO effects on bfa_meta data unless the post/page has been saved AND the title is untouched.
The first post title 'Auto Draft', in fact, is created at the same time whenever a 'new page' created and wp will give a new post id to that empty data, when I change that 'default' title, and click 'update', it changed, but wp 3, created another empty line of 'Auto Draft' in the post table, following every update, it created another one...and so on.
a little research here
wp add to 3.0 on purpose, see http://core.trac.wordpress.org/ticket/11889
and http://wordpress.org/support/topic/411355
To skip with save it as 'Auto Draft', you can made a little modification on the ata's function.php to remove that 'Auto Draft', the funny title will be gone as wished, but this data still create on the db table.
Code:
(template_dir/function.php, about line 603)
$title = ($post_id->post_title !== 'Auto Draft') ? $post_id->post_title : '';
|
Ok so I tried to find that code and its not there. My functions.php only has like 450 lines.. and in the title area there is no word Auto Draft..
any idea of what to do?
also I tried to update manually and it spit out tones of errors on my site and my site went down.. so for now i'm sticking with:
Atahualpa 3.4.1
|
#15
Jan 21, 2011, 01:52 PM
|
|
|
|
10,176 posts · Jul 2009
Central New York State USA
|
|
You wouldn't see the words Auto Draft in the functions.php. The code shown is what that line needs to be changed to. I would also suggest making a copy of the functions.php file in case the edit messes something up.
Also what do you mean you got tons of errors when you manually upgraded? How did you do the manual upgrade?
__________________
~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.
|
|