The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
6 views

Cannot save using register_setting

I am adding an option field to the 'general options' page in WordPress. I cannot get WordPress to save the field. Cannot figure out what I am doing wrong. function add_banner_options() { ...
0
votes
0answers
13 views

help with wordpress post_meta saving and updating

i have this code which works fine, i can input information, save information, retrieve information no problem but if i want to erase an existing information to leave the field blank it will not erase, ...
0
votes
1answer
25 views

Custom meta box using OOP way doesn't save data

This is the first time I'm building meta box using OOP way, the problem is when I save the post (product) or update it the input text is not saved to the database. Here is my code: <?php /** * ...
0
votes
0answers
24 views

Hide/show radio buttons stop working on save

everyone! Here's my case. I'm developing a little widget, and I was looking for a way to hide/show different DIVs on selecting a set of radio buttons. I found the proper code and adjusted it to my ...
0
votes
1answer
259 views

Add a wp editor to custom plugin and save data

I'm creating a custom plugin. One of the fields in the plugin let's the user add data. If I add a textarea the user has no control over the text. So I would like to add a editor. I know WordPress ...
0
votes
1answer
135 views

Save meta box values as an array to wp_postmeta

I have a custom metabox running that dynamically adds fields to the form I'm stuck on the saving part. This is how the fields are added: <tr> <td valign="top"> <label ...
1
vote
2answers
157 views

$wpdb->replace / Replace or update primary key

I write code to save data in to the database table. I want Replace a row in a table if it exists or insert a new row in a table if the row did not already exist. ...
0
votes
0answers
73 views

Saving an upload media meta box field

I'm using the answer for this previous question (link below) to generate a custom meta box with media upload functionality: Properly add an upload media button in a meta box field I've managed to ...
0
votes
1answer
96 views

save metabox with new values _wp_page_template

I created a metabox to display the page templates and select a different one with a radiobutton selection. This is a replacement for the current page attributes metabox. I'm missing something with ...
0
votes
0answers
74 views

Can't save wp_editor()

I'm creating a theme option page for my WP theme and i try to put an editor in the back office, so i call wp_editor(): function register_and_build_fields() { register_setting('theme_options', ...
0
votes
0answers
32 views

How to save my theme customization the right way?

I am making a wordpress theme for free download. I made some theme functions with $wp_customize what looks like this: <?php // theme options function basilico_customizer_register($wp_customize) { ...
1
vote
1answer
324 views

How to add wechat (weixin) link to navigation menu?

The profile link of WeChat (or Weixin) has the following format: weixin://contacts/profile/username As you can see, it doesn't use http:// and that seems to be the reason that it cannot be added to ...
0
votes
1answer
35 views

Problem in custom meta boxes

I am trying to create a custom meta box "Set your mood" which will display the mood of user but unfortunately meta box is not saving value. Please help This is my code <?php /** * Adds a box ...
6
votes
5answers
512 views

Server side validation

I'm trying to do some server side validation of post fields (custom and/or non-custom fields). Validation works just fine, but I can't seem to stop the post from saving if validation fails. I tried ...
0
votes
0answers
35 views

wordpress plugin admin area save settings

I am brand new in wp plugin development and i need your help cause throw web the answers that i find confused me. So i would like to make a countdown timer wp plugin for my website that will display ...
3
votes
1answer
184 views

How to update widget from widget() function?

I'm trying to create a simple linkroll widget for displaying recent https://pinboard.in links via their API. To maximize loading speed, I want to cache the linklist in a widget field, as well as the ...
0
votes
0answers
59 views

Select value don't stay selected after save

I did a multiple select item that takes his options from another CPT, it works but after the saving the selected items don't stay selected. this is my code for the meta box global $post; echo ...
0
votes
0answers
31 views

Users can only save their draft once before saving for revision

I use the Members Plugin and Custom Post Types. I created a role and want them to contribute posts (within this Custom Post Type musician) but don't publish them. Additionally I want to give the ...
0
votes
1answer
86 views

Save values from foreach loop in wp_editor

I have created a custom metabox that contains a wp_editor. The wp_editor shows content of a uploaded .csv file and constructs a table. I want to allow the users to edit the table after uploading the ...
0
votes
1answer
222 views

New User Save Filter

I'm using the new(ish) filter add_action( 'user_new_form', 'funcy', 9 ); to add custom fields to Create A New User page. I'm then using add_action( 'personal_options_update', 'save_user_meta' ); ...
0
votes
1answer
118 views

Update user meta array using foreach

I have two arrays consisting of keys and values: Array consisting meta keys: $user_meta_fields = array ( 'first_name', 'last_name', 'job_title', 'college', ...
0
votes
0answers
158 views

Custom metabox value not saving

I have a custom meta box on a custom post-type. I've followed this tutorial but can't get the value I enter to save, I'm guessing I've referenced to something incorrectly. I've looked at the other ...
0
votes
1answer
369 views

Can't change theme options, connection reset error

I've downloaded a theme and applied it, but whenever I go to Appearance - Theme options and click on "save settings", I get an "ERR_CONNECTION_RESET" error, while in address bar I see ...
0
votes
2answers
3k views

Warning: Illegal string offset on theme options page [closed]

Im creating custom theme options and Im getting this PHP error: Warning: Illegal string offset in ... on line 75 // adding the page to menu add_menu_page('Theme Options', 'Theme Options', ...
0
votes
1answer
29 views

How to disable saving/changing update date for certain admin users?

I have an admin user who is only for correcting the spelling errors and grammar stuff, however, when he corrects some post that is several hours or days old and just changes "People are gready" to ...
2
votes
1answer
51 views

Why won't my custom widget stay in the sidebar after a reload?

After I drag my custom widget into a widget area and reload the page it's gone. Any ideas? <?php add_action('widgets_init','register_postTypeWidget'); function register_postTypeWidget(){ ...
2
votes
2answers
656 views

How to force function to run as the last one when saving the post?

I don't know how to force this function to run as the last function after all other save things from WP are executed. This is my current code in my plugin: add_action( 'save_post', 'do_custom_save' ...
0
votes
1answer
292 views

Save custom meta box data to database

I have a custom post type Events. Under Events, I have a custom meta box which selects the time and data of the event: <?php $meta_boxes[] = array( 'id' => 'event_date_option', 'title' ...
4
votes
1answer
670 views

Run function AFTER theme options are saved?

Weird question, how can I run a custom function AFTER my theme settings are saved? I see that the register_settings() function has a sanitize callback, but that runs before the settings are changed. I ...
0
votes
0answers
527 views

admin panel save option with ajax

I create custom options in the admin panel but I have some difficulties to save it with ajax. I can't get the php script with action variable in ajax script. Here all my scripts: in functions.php : ...
0
votes
1answer
148 views

Select Menu for Custom post Type does not save

I posted a discussion on CSS-Tricks the other day. Explaining that my Videos were not displaying on my Video page from my custom post type that I created using this tutorial. I thought I fixed the ...
0
votes
1answer
632 views

Theme Option's Save Button is not working

I'm currently working on making an options panel for a theme (theme-options.php) on my localhost. Every thing was going well until I tried testing the Save button. After clicking it, I got the ...
0
votes
1answer
121 views

Wordpress overwrites UNC

I am using wordpress multisite. When editing a post, adding a link to a file in UNC format, and clicking save, wordpress is stripping out the drive letter and colon before the data hits the database. ...
0
votes
0answers
133 views

Select Options Meta Data is Not Updating in Edit Meta Box

I have a Meta box with two user inputs 1: Text-field and 2:a Select drop Down options. I used following Save Method in mt Meta box and second part of the code belong to saving the Selected option from ...
1
vote
1answer
92 views

How can I automatically insert the page content as the title?

I have a custom post type with no Title field. These are short status messages, where only the content matters. The RSS feed and permalink display the title as Auto Draft, which is not very useful. ...
3
votes
1answer
100 views

How to Save Different Settings Options Using Settings API and/or the Theme Optimizer

I would like to allow users to save different versions in the options panel using the Settings API and/or the Theme Optimzer. For instance, imagine that I have styled my site using via an admin panel ...
0
votes
1answer
883 views

Change post title during post saving process

My theme and Qtranslate plugin have a conflict and cause many issues on my website's post titles. I cannot trace what causes the issue and I thought that I could handle the title saving myself ...
0
votes
2answers
110 views

Data won't save on a straightforward metabox, what am I missing?

I need a second set of eyes, because its late and I can't see this anymore. Why won't this save? What am I missing? add_action("admin_menu", "tf_book_stuff_create"); function ...
2
votes
1answer
183 views

how to save multiple custom fields for a post in one go?

I want to save multiple custom fields for a custom post in one go. Something like get_post_custom() except for that I need to set it this time.
1
vote
0answers
673 views

Save & Reset button in theme-option with Ajax (without refresh)

I have a theme-options page and i will that the save and reset button loaded without refresh the whole page... but i have no idea, how i can implement ajax in my theme-option... Thank you for your ...
0
votes
1answer
674 views

Custom taxonomy not saving correctly

I'm using a custom post type and a custom taxonomy to display a list of properties and its type in a page. It's working fine but for some reason some of my posts' taxonomies aren't getting saved ...
1
vote
2answers
2k views

Custom Post Type, Saving Multiple Checkboxes

For a custom post type, I'm pulling in a list of another custom post types that I need to select for saving ... <input type="checkbox" name="32"> My CPT <br> <input type="checkbox" ...
1
vote
0answers
96 views

My custom write panels won't save data. What am I missing?

So far I've been reading some tutorials about ways to create Custom Write Panels. It seems that none of them will really work without some bug. I'd like to discuss one of those tuts here: ...
0
votes
2answers
366 views

Adding action to save_post, post needs to be saved twice for function to work

I have written the following function which copies all post terms from the "tribe_events_cat" taxonomy to the "categoria" taxonomy when the post is saved. There is a bug where in order for the terms ...
0
votes
1answer
989 views

Save Option on Database

Sorry for the question but can you help me? I have this form in a widget: <form> <fieldset> <legend>Counter Position:</legend> </br> <p> Right ...
1
vote
1answer
491 views

Problem with meta box in Links

I have troubles saving the data of the meta box in the link part of the admin. My code is working, because when I try it in the post or page part, it saves the data, but in Links it just won't. Here ...
1
vote
1answer
308 views

Settings API erases itself?

I have two forms created using Settings API, and when I save one of them the other one gets erased and vice versa. Here's the whole code so you could paste it into your functions.php file and see ...
0
votes
1answer
815 views

Remove Save Draft & Preview Buttions.. and also Statius: Draft & Visibility: Public

I want to remove the entire section that says Save Draft, Preview and Status: Draft and Visibility: Public. I want to not show it. Its ok if it is still fuctional. Attached is the part I do not want ...
0
votes
1answer
436 views

Having trouble with custom post type / meta box

I've been working on a custom post type meta-box implementation that allows me to change the post_date to match the value in my "date" meta-box. The function works perfectly except when I try to add ...
1
vote
1answer
459 views

Where is the WP auto-save draft JavaScript?

If you write a title, then move away from (blur) that input field, WordPress will auto-save a draft for you, likely in order to create a post slug placeholder for you. I'm looking to possibly extend ...