Q&A
Front-end update_post_meta snippet displays white screen?
Thanks to @Anu’s correction I now have a function to update_post_meta from the front end.
What is the best way to export and import theme options?
So what is the best way to create an export and import feature, I tried serialize() and urlencode() on an array of options to be used in a url like so:
Make Custom Metaboxes Collapse by Default
I’ve created some custom metaboxes for my post write screen. Is there any way to make some of them display collapsed by default?
How to load css in the footer
I was trying to move the load of my style.css in the footer of my wordpress theme. I have already done something similar with 2 js files and it works fine, they load in the footer: function my_init() { if (!is_admin()) { wp_deregister_script('jquery'); wp_register_script('jquery', 'http://www.studionews24.com/wp-content/themes/network/js/jquery.min.js', false, '1.3.2', true); wp_enqueue_script('jquery'); // load a JS file from … Read more
Order Admin sub-menu items?
I am adding items to a CPT Admin menu using add_submenu_page which works great, but they are added to the bottom of the sub-menu after the CPT options. I want to be able to have them on top , but I suppose this question can also apply to ordering all Admin based sub-menu items.
How to disable content pagination?
I want to totally disable this functionality from WordPress because I’m implementing my own version of this with Javascript.
Make Google index the entire post if it is separated into several pages
While this is a question, it is as well a serious warning to publishers that separate their posts using <!--nextpage-->.
How do I programmatically set default role for new users?
I would like new users of the blog to have custom role, rather then Subscriber. How do I set this programmatically? I know that it can be changed from the backend.
Custom Taxonomy Archive Page
I have created a Custom Post Type with the name Product.
I have created a Custom Taxonomy for that post type by the name of products.
That taxonomy have a few terms (printer, keyboard, mouse etc)
I have created a template with the name taxonomy-products.php
