How does WordPress generate URL slugs?
Is there a page somewhere that details exactly how WordPress generates slugs for URLs? I’m writing a script that needs to generate URL slugs identical to the ones WordPress generates.
Is there a page somewhere that details exactly how WordPress generates slugs for URLs? I’m writing a script that needs to generate URL slugs identical to the ones WordPress generates.
Is there a way to return the current active color scheme?
Possible Duplicate:
How to know which one is the main query?
I’m using WordPress 3.0.5 and have tested with 3.1rc4. In the main PHP file of my plugin, when I try to call is_plugin_active I get Call to undefined function is_plugin_active(). I can call add_action and add_filter. What should I check/change to fix this?
I’d like to get a menu object from its theme location argument.
Is it possible to return a widget instance into a variable or array? I’m thinking something along the lines of $widget['title'], $widget['content'] etc.
Given a user id, $user_id, and post id, $post_id, how can I programatically update a wordpress post author?
Is there any way to import a basic, exported WordPress content XML file and have it replace the existing content? What I’m trying to do is synch up two instances of a site (development and staging servers) and all I want to replace is the Page content. When I try to import the XML document it simply states that all the pages already exist and nothing is done. Is it possible to override that warning and replace the content of the pages with the content of the XML?
I need to add custom inline styles to the header of a custom theme I’m creating. I’ve come across the wp_add_inline_style() function, which works but doesn’t really suit me as it depends of a specific stylesheet. I’d need to add inline styles at the end of the head tag without a stylesheet dependency.
I’ve created some custom taxonomies using register_taxonomy, but I want to prevent new terms from being added. I noticed that there is a ‘capabilities’ argument available in register_taxonomy, is that what I should be using and if so, how would I use it?