Tagged Questions
1
vote
2answers
681 views
Most efficient way to add javascript file to specific post and/or pages?
I am wondering what the most efficient method is to add a javascript file specifically for a post and/or page.
Here are a few solutions I came up with:
Switch to HTML editing view and post your ...
0
votes
1answer
198 views
Dynamically Add Custom Fields in Posts
I'm building a resume website and I would like to manage the data in custom fields.
For examples I would have multiple meta boxes: Education, Work and Competencies
In Work I can have multiple ...
0
votes
2answers
380 views
Store JSON in a custom field
I have a drawing canvas on some of my Wordpress' post pages, where users can draw on. Upon drawing, my JS code currently sends the user's drawing to a php file. This is where I store the array in JSON ...
1
vote
4answers
520 views
HTML / Javascript in custom field textarea?
Is there a filter for allowing HTML / Javascript into a custom field textarea? I'm using get_post_meta.
On the frontpage I want the HTML / Javascript to run, not to be displayed.
0
votes
1answer
200 views
How can I duplicate “Add Custom Field” with just JavaScript?
I frequently need to add several Name-Value pairs to the Custom Fields of a post. At present I add these one by one, by entering the Name and Value and clicking Add Custom Field.
I'd like to speed ...
7
votes
3answers
3k views
Validating Custom Meta Box Values & Required Fields
Something which I have never seen covered is the best way to validate that specific form fields are filled out correctly for custom post type meta boxes.
I am looking to get expert opinions on how ...