FAQ Advanced Topics

This article lists common questions for advanced WordPress users and refers you to articles that contain the answers. There is also a list of resources at Advanced Topics, which might be of help, and a list of resources specifically for Plugin, Theme, and Core WordPress developers at Developer Documentation.

FAQ Advanced Topics

This article lists common questions for advanced WordPress users and refers you to articles that contain the answers. There is also a list of resources at Advanced Topics, which might be of help, and a list of resources specifically for Plugin, Theme, and Core WordPress developers at Developer Documentation.

How do I get .phps files to show up in colored text on my server?

If you want to have your server display .phps files in color like this updatelinkroll.phps at carthik.net, add the following line to your .htaccess file in the server root directory. This assumes your server is Apache and that you have the ability to add types in .htaccess

How can I do a bulk edit of the Status field for all the posts in my database?

Use the following SQL commands to change the post_status for every post in your wp_posts database table. This command will do the bulk change and exclude Pages from being changed–remember to replace STATUS with the draft, private, or publish.

If you have multiple authors and only want to do a bulk edit of just one author post, you can use the following command, but remember to replace NUMBER with the correct ID number of the post_author.

Read More: Templates

See also:

  • phpMyAdmin
  • Database Description
  • phpMyAdmin web site
  • MySQL web site

How to create a link in my header that links to a URL?

This solution assumes creating a Page causes a link to be put in your header.

Install and activate the plugin called Redirectifiy. Create a Page called Wiki and save that Page. Then do Manage->Pages and edit that Page and add the Custom Field with an of redirect and URL to your Wiki in the value.

(That last edit of the page is necessary to overcome a bug where you can not assign Custom Fields to a new page, but you can do it when you edit the page.)