Creating a theme options page
I checked out the code that you posted and didn’t find any issues. I then copied it into my theme’s functions.php, it worked for me. Both text areas appear, and data can be saved.
I checked out the code that you posted and didn’t find any issues. I then copied it into my theme’s functions.php, it worked for me. Both text areas appear, and data can be saved.
I’ve used this method in quite a few applications until I found out about using admin-ajax.php, so pretty much simply put, no, I don’t think it will cause any problems. Although I do recommend using the method that WordPress describes! In my opinion it is much easier and works nearly the same (or better) as … Read more
I’m gonna post the CSS anyway because this is the best way to hide it. table.pages thead, table.pages tfoot { display:none; } I didn’t find any useful hooks in the source that would allow to pull the actual HTML for the table header and footer out.
try define(‘DB_CHARSET’, ‘utf8′); this is what’s in my wp-config.php and remove define(‘DB_CHARSET’, ‘UTF-8’);
You do not need a callback function at all. You could display (yet another) custom edit screen, but if the custom post type is set up correctly you should be able to reach it simply by pointing to http://yourdomain.com/wp-admin/post.php?post=9999&action=edit where 9999 is any post ID that corresponds to a post of said type. Hence you … Read more
This is a known limitation by the WordPress menu functions, you would need to rekey all of the menus ahead of time to be +100 or whatever you need, before Pods adds the menus to fix this. Previous versions of WordPress had a bigger problem with this, but they recently increased it in the past … Read more
Found this while trolling the internets… Works Perfectly add_action(‘admin_init’, ‘set_user_metaboxes’); //I want it to fire every time edit post screen comes up //add_action(‘user_register’, ‘set_user_metaboxes’); //You can also have it only set when a new user is created function set_user_metaboxes($user_id=NULL) { //These are the metakeys we will need to update $meta_key[‘order’] = ‘meta-box-order_events’; $meta_key[‘hidden’] = ‘metaboxhidden_events’; … Read more
Okay, I had the same problem and just solved it by adding an “exclude” field to the shortcode. Like so… You have to just pull the ID number of the file you don’t want to show. This works without adding any functions or edits to the theme.
var_dump($paths); shows that the your $paths variable is an empty string. It’s not showing anything because there is nothing to show. Since you seem like you’re trying to find all the plugins, you should have a look at get_plugins. glob is going to be relative to the current working directory (with will vary depending on … Read more
you should check out the other posts related to this. A lot of times you will have some type of malware in WordPress coded in PHP which screws with your JS codes. I have seen other threads on stack about similar points.. JavaScript widgets do not move and no ajax edits. Check out this stack … Read more