Q&A
Change Default Image HTML
I am making a WordPress theme and want to change the default image html. For example if you upload an image using WordPress uploader it generates the following html for your images
WAMP vs XAMPP pros/cons – for running a local testing server
XAMPP is NOT cross-platform. There is XAMPP for Windows, XAMPP for Linux, for Mac and for Solaris, but each pack contains different pieces of software, runs differently with different performance, etc. (cross-platform means that you take the exact same piece of software and it runs the same way on different platforms … like Azureus used to be: a jar that you could use the same way)
How to show only parents subpages of current page item in vertical menu?
I just can’t find a way to make it possible to show only current parent items down to current page item in a vertical menu the “wordpress way”.
Read-only taxonomy (user can assign term but can’t create or edit existing terms)
I’m creating a custom taxonomy whose terms must remain fixed by all users. Once I’ve set up the starting set of terms, I want them to be immutable. I also don’t want to clutter up the Admin UI with additional links and metaboxes where they’re not needed.
How do I add /blog/ as a prefix to permalink structure for blog posts, tag pages, etc.?
I’m using WordPress 3.1.3 as a full CMS, installed in the root directory of a domain. I have it setup using the built in options to have a static page as the home page, and then my blog at http://www.example.com/blog.
how to change user roles for users who doesn’t have any. (about 8000 users)
We have about 8000 users who doesn’t have any roles. we need to change them to “contributor”.
How can I change them to “contributor”?
Should I do on database? if so, which fields I need to update?
Slow Query for the wp_options table
I have been tracking the slow queries log of the WP based site (with the default value of the a long_query_time set to 10), and I have noticed that the following query is often getting logged –
Store Page Template Files in a Subfolder
I have number of legal documents of different formats / layout that I need to display on a WordPress site, however I don’t want to have them as individual page-pagename.php files in the root of the project folder. I know I can use get_template_part() and load in different template files, but this won’t really help me because the files are all of differing styles.