Custom Fields Cannot be Deleted
I was trying to display custom fields in the footer of my posts with %meta% and then all of a sudden I had a bunch of custom fields that I didn't create myself and that I just cannot seem to get rid of.
If I delete them, when I update the post they just come right back. When I try a new post, they automatically appear. The automatic custom fields I get are:-
If I have a "Listening to" field or a "Reading" field then those will appear, but alongside all the bfa_ata_ fields which I don't want. Here's a cropped screenshot of what I see on a post. The bfa_ata_ custom fields don't appear for the posts I made before I started using Atahualpa, but only for those I made after it, which is quite recently. (There's only one exception and I've no idea why that one in particular seems fine whereas the others aaall have the extra custom fields displayed.) I've been at this for hours already and I still can't seem to find a solution. Help, anyone? :confused: |
These are the new post/page options, see the other box higher up on the page right below the write panel "Atahualpa post options".
The post info item %meta% became kinda useless through that, I had not thought about that. I'll put something in to exclude those when %meta% is used. For now, can you use %meta('fieldname')% instead? |
Quote:
(1) If the post has no fields assigned to it, I get an error message in the footer where I inserted the meta, presumably because the bfa_ata_ fields are still automatically assigned to the post somehow, although they're blank. Again, this only happens for recent posts. Posts prior to my switch to Atahualpa are fine. :/ The error message says: Warning: implode() [function.implode]: Bad arguments. in C:\Inetpub\vhosts\elvenstar.net\subdomains\ind\htt pdocs\wp-content\themes\atahualpa\functions\bfa_postinfo.ph p on line 16 (2) I can only use it for one custom field key - say, for example %meta('feeling')% If I try and add more (I used to use about three or four at most - "Feeling", "Listening to", "Readi ng" and "Watching"), then I get the same error message in the footer alongside the "Feeling" meta, about bfa_postinfo.php So... yes. It's very perplexing to me. :/ |
For %meta('fieldname')% try this: Replace in functions/postinfo.php, line 12-18, this
PHP Code:
PHP Code:
/* The meta = ALL custom fields:values, formatted by Wordpress as unordered list <ul><li>..</li><li>..</li></ul> */ if ( strpos($postinfo_string,'%meta%') !== FALSE ) { ob_start(); the_meta(); $the_meta = ob_get_contents(); ob_end_clean(); $the_meta = preg_replace("/<li>(.*)bfa_ata(.*)<\/li>/i", "", $the_meta); $postinfo = str_replace("%meta%", $the_meta, $postinfo); } |
Wonderful! Problem solved. :D (Well, the bfa_ata_ options still appear in the custom fields list if I go back to edit the post, but since they don't appear on the post itself, I'm fine with that :] )
Thanks so much, Flynn! |
2 Attachment(s)
I am having rows and rows of Custom Fields I never entered. If I delete one, I only get more. This is really weird. I have another page where I have over 50 custom fields all self-generated from the Atahualpa Page Options where I put values into the 4 rows.
I deleted the values in the Atahualpa Page Options' 4 rows and all I have is 50 blank custom fields with values on the left hand side for custom fields such as bfa_ata_body_title_saved, bfa_ata_body_title, bfa_ata_meta_description... and several blank on both right & left custom fields. Also, every time I save the page I get more of these custom fields that are growing indiscriminately. btw, all of this is in Manage>>Pages. I am using Atahualpa 3.4.1 and WordPress version 2.6.2 |
I suggest to update to 3.4.2, Atahualpa is still evolving fast and I need to focus on the current and next versions
|
All times are GMT -6. The time now is 03:28 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.