How to use WP-FirePHP extension?

I gave up on using the plugin and use FirePHP straight as a mu-plugin: And firebug.php file consists of: <?php /* Plugin Name: FirePHP Version: 0.1 */ require_once( ‘FirePHPCore/FirePHP.class.php’ ); ob_start(); $firephp = FirePHP::getInstance( true ); function logit( $var, $title=”From FirePHP:” ) { global $firephp; $firephp->log( $var, $title ); } Then I call it from … Read more

How to make a list of companies’ information and display them to user, using custom post types and a custom taxonomy?

Custom post types and taxonomies are the appropriate method of doing this. It sounds like you’ve already identified the appropriate taxonomies and CPT: A company post type A company_type taxonomy register_post_type and register_taxonomy can do this for you. Don’t forget to re-save permalinks if you use those functions or change their parameters. After doing this, … Read more

How to pass multiple values in shortcode?

You can create your own shortcode which will hold all of that for you hardcoded: add_shortcode(“my_five_forms”,”my_five_forms_handler”); function my_five_forms_handler($atts,$content =null){ $con = “[frm-entry-delete-link id=9 page_id=25 field_key=hsn108] [frm-entry-delete-link id=12 page_id=25 field_key=cp7pi] [frm-entry-delete-link id=13 page_id=25 field_key=ksa9qv] [frm-entry-delete-link id=14 page_id=25 field_key=9zuf6o] [frm-entry-delete-link id=15 page_id=25 field_key=w8w7op]”; return do_shortcode($con); } // and use it like this: [my_five_forms] or create a shortcode … Read more

Using rewrite rule to access a view of a plugin from home page

This will create / handle your endpoint and attempt to load your php if the file is readable. Note: you won’t want to refresh the rewrite rules here but it’ll make sure you can test quickly. if (!class_exists(‘WPTestPluginEndpoint’)): class WPTestPluginEndpoint { const ENDPOINT_QUERY_NAME = ‘__my_test_plugin’; // WordPress hooks public function init() { add_filter(‘query_vars’, array($this, ‘add_query_vars’), … Read more