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.

Can you run WordPress on a MarketLive/Java EE server?

PHP is programming language and software that interprets and runs code written in that programming language. But PHP is not web server – software that responds to requests, puts together and sends pages to visitors. If you are using web server that cannot use PHP then your only option is to add another web server … Read more

Cause of Blank Lines Being Added to WP FIles?

I think the difference is probably something to do with the editor you use to edit files, and specifically the line ending characters. DOS machines (like Windows) use a carriage return character and a line feed (“\r\n”) as a line ending, and Unix-based machines (newer Macs and Linux included) use just a single line feed … Read more