The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
20 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
2answers
128 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
19 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
81 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
20 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
22 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
47 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
58 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
62 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
42 views

Saving the current state of a checkbox that I have added to my admin 'edit a category' page?

I have been struggling with this for two days. I've added an input(checkbox) to represent "Featured" categories on the 'Create a category' and 'Edit a category' pages. My problem is that when I update ...
0
votes
0answers
126 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
180 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
0answers
40 views

Saving options for the fields on paginated pages

I am working on a WordPress plugin with some options for the fields which are working fine without pagination. I am kind of new to WordPress plugin development. The problem is I added pagination to ...
0
votes
2answers
2k 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
27 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
0answers
41 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
280 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
155 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' ...
0
votes
1answer
400 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
394 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
134 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
483 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
78 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
112 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
85 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
92 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
623 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
173 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
616 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
463 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
94 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
284 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
839 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
444 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
297 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
684 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
424 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
393 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 ...
0
votes
1answer
569 views

register_setting and AJAX?

Please pardon me if this question is totally unrelated in itself, but I'll do my best to point out the issue I am having and what I would like to achieve. Scenario: I have a custom theme option's ...
1
vote
3answers
5k views

How can I edit post data before it is saved?

I have a plugin and I would like to be able to run the post content through some filters before it is saved to the database. From looking at the plugin api, I see that two hooks that look like they ...
5
votes
1answer
2k views

using wp_update_post on save_post

im trying to update a posts date (-1 year), when you hit update. but it causes an infinite loop. any other ways of doing this? thanks. function change_year($post_id, $post){ if ( ...
0
votes
1answer
2k views

store simple data in get_option()

I am trying to store simple data, a few links inside wp_options. Basically using the following way: update_option( 'simple_links', '<a href="">link 1</a>' ); my question is if it is ...
0
votes
1answer
58 views

Got a problem with a widget

i am trying to build a widget that would display a list of top authors on sidebar.. This is not my first widget but it is my second one so my apologies if i am way off.. The problem is that when i ...
0
votes
1answer
336 views

Save custom field types with this function…?

I found this great article (right here) about creating and saving custom fields for user profiles. The problem is that it only saves text fields. I can't save checkboxes, radio, or any other field ...
1
vote
1answer
549 views

Can't save checkbox option

I know this is a mess, but can someone tell me why I can't save to checkbox option in this plugin? /* Runs when plugin is activated */ register_activation_hook(__FILE__,'vigtigt_besked_install'); ...
3
votes
2answers
382 views

Allow guests to save favourite pages?

We're creating a site where we want guest users to add pages to a favourites list (post IDs), so they can print or email their selection if they want. What would the best way be to do this in ...
6
votes
3answers
9k views

Attaching taxonomy data to post with wp_insert_post

I am implementing (trying) a front end posting system which shows taxonomy data in several dropdown select fields, each of the dropdowns is named by using the "name" $arg in wp_dropdown_categories. ...
2
votes
1answer
770 views

How to add multiple checkbox elements to media attachments?

Based on solved question from: How to add a checkbox element to attachments editor with example Theres an example of multiple Checkboxes, for example: Colors, patterns, etc... A grouped list but ...