Tagged Questions
0
votes
1answer
47 views
Save selected item from dropdown menu in a meta box as a metadata value for a custom post type
I have been beating my brains on this one for days now and my Google-fu is failing me.
I have created a custom meta box with a dropdown menu that lists all of the terms from a custom taxonomy. What I ...
0
votes
0answers
37 views
Trying to understand the action: save_post and an incomplete $post object
I begin with a fresh post (i.e., add New). I fetch (via Ajax) an image (read: src) from another site. In the process of saving (action: save_post) I want to PHP copy() the image to my local server and ...
0
votes
0answers
26 views
Strange / unexpected results with add_action('save_post')
As I'm sure plenty of you know already, 'save_post' will actually fire multiple times for a given save. Rather than copy / paste the same 12+ lines of code every time I need just a single fire, I ...
2
votes
0answers
61 views
Placement of Code in Plugin for hooking `save_post`
I ran into a strange Problem today developing a new Plugin.
I set it up as usual, creating the f711-roomprice folder in the Plugindirectory, and creating the f711-roomprice.php as well as an inc ...
0
votes
1answer
42 views
How to get changed post title in my custom plug-in which fires when 'save_post' is called?
I created a custom WordPress plug-in that hooks onto 'save_post" using add_filter(). I need to do something with the post titles and whenever a user changes the title, my plug-in cannot get the new ...
1
vote
1answer
119 views
using new WP_Query in save_post function alters $post
I'm trying to include a WP_Query in a save_post function for a custom post type. The query is used to check all the other posts for a custom field bh_shortcode to make sure the content of the field is ...
0
votes
3answers
786 views
A Post is saved twice or more during add_action(save_post)
I have added a custom meta box for advanced information for a specific post category, to my create new post page.
Now I recognize, that if I save the post, it writes 2 entries in the db with 2 ...
0
votes
1answer
94 views
Bug: Post needs to be updated twice when adding action for save_post hook
My function does exactly what I want it to do: I'm trying to add/update meta fields in another post type when an "events" post is saved. Except the post needs to be updated twice for the information ...
1
vote
3answers
1k views
Conflicting save_post functions when passing the post id and saving custom meta boxes for different post types
Post save functions are conflicting with each other when adding them to the save_post action hook.
2 different custom post types with 2 different (one for each post type) custom meta boxes.
I'm ...
0
votes
1answer
260 views
help intercepting save_post through plugin
I use stackoverflow very often and just found out in google about this one, Nice :D
Well,
i want to save my every post i write from wordpress to my 3rd (OEXChangeble) website aswell at the same time, ...