WordPress XML Import Format – Comments

In this article we consider how to write out comments data in the WordPress XML import format.
Once you do this, you can easily import the generated XML file into WordPress by using the Import functionality within your WordPress dashboard.
We assume that you already have the comment data extracted in a PHP…..

Add a Standard WordPress Meta-Box

Meta-boxes are interface objects that allow you to easily associate additional information with your WordPress posts, pages, or links. If you go into your WordPress Edit Post screen, you will see a variety of standard WordPress meta-boxes, including those for entering tags, categories, post thumbnails, and setting post status.
You can create your own meta-box…..

WordPress Example Plugin

The Shiba Example Plugin is an empty plugin to help you get started on writing a WordPress plugin.
The Shiba Example Plugin contains -

A plugin activation hook that runs when a plugin is first activated.
Plugin initialization functions.
An example plugin sub-menu page.
An uninstall.php file that runs when your plugin is uninstalled. Use this to clear out options…..

How to Render Your Own WordPress Photo Gallery

When you insert a WordPress gallery into your blog post, it gets rendered in native WordPress gallery mode. In particular, each of the photos in your gallery gets rendered as a thumbnail, and clicking on the thumbnail will connect you to the photo source file, or the photo attachment page.
Here is an example WordPress native…..

Create Pop-up Windows in Your WordPress Blog with Thickbox

One simple way of enabling pop-up windows right from your WordPress posts, is by using the Thickbox javascript library that comes with WordPress.
You can link the pop-up window to a HTML input element such as a button, or you can simply link the pop-up window to a HTML hyperlink. Below we show examples of both…..

How to Add Admin Columns in WordPress

Many of the key administration areas within WordPress displays a table containing a list of objects and some of their attributes.
For example, the Posts screen displays a table with a list of posts and some of their attributes including author, categories, tags, number of comments, and date.
The Media, Links, Pages, Comments, Plugins, and Users…..

Obscure WordPress Errors – Why? Where? and How?

WordPress Error 1
‘You do not have sufficient permissions to access this page.’

This error is activated within the file wp-admin/menu.php which in turn gets included by wp-admin/admin.php which gets called by almost every WordPress administration page.
Here is a code snippet from wp-admin/menu.php where the error message is reported -

<?php
if (! user_can_access_admin_page()) {
…..

WordPress query_posts and get_posts

The WordPress query_posts command allows you to query the WordPress wp_posts database and retrieve post objects (e.g. posts, pages, attachments) based on their attributes.
query_posts is used throughout the WordPress administration system, but it is most prominent in the WordPress Loop and underlies all of the WordPress Loop commands, e.g. the_post or the_title.
get_posts is…..

WordPress Page Redirect

There are a variety of ways to achieve a dynamic page redirect from within your WordPress theme or plugin.
If you are only interested in static redirects (i.e. always redirect one page address to another), then it is most efficient to use 301 redirects directly from your web server.
Unlike static redirects, dynamic WordPress redirects will…..

Expand the WordPress Media Library Admin Panel

As of WordPress 2.8, it appears that the only way to insert new interface panels into the WordPress Media Library is through the ‘restrict_manage_posts‘ action hook.
Below I describe how I use this hook to expand the Media Library admin panel.

1. Media Library Menu Check
Be careful when you use this hook because it gets called in…..

Copyright © 2009 - All Rights Reserved. Powered by WordPress & Theme Shiba by ShibaShake. Privacy Policy
search button search button
rss