Pagination of custom mysql in wordpress

Lee, looks like you need to look at OFFSET in MySQL, there is a pretty good explantation here. You can just multiply the offset by the page number -1 so page 2 will only offset 10 instead of 20 and so on.

Working with wordpress plugin and theme templates structures

If this is a plugin you should really keep the files in your plugin folder. Alternatively you can use the theme folder under it’s own name separate from the active theme. I have seen the latter done and it works fine but you don’t want some unsuspecting users to activate it by mistake. You should … Read more

WordPress 3.2 query_posts and pagination, permalinks issue

From the WP Codex for WP_Query: Show Posts from Current Page Display posts from current page: $query = new WP_Query( ‘paged=’ . get_query_var( ‘page’ ) ); Pagination Note: You should set get_query_var( ‘page’ ); if you want your query to work with pagination. Since WordPress 3.0.2, you do get_query_var( ‘page’ ) instead of get_query_var( ‘paged’ … Read more

Linking text within textarea of custom meta box

I finally found the answer to this and am posting it here in case someone else needs the answer. Just put the following in your theme file. <?php global $post; $variable_name = get_post_meta($post->ID, ‘custom_metaBox’, true); echo html_entity_decode( $variable_name ); ?> Change the variable name and custom_metaBox to your specific values and voila, functioning HTML code.