Add a column before username in the users profile table

Ok, I solved it by unsetting $defaults and reconstructing it after adding the company function add_company_column($defaults) { unset($defaults); $defaults[‘company’] = __(‘Company’); $defaults[‘username’] = __(‘username’); $defaults[‘name’] = __(‘Name’); $defaults[’email’] = __(‘Email’); return $defaults; }

E-commerce-like solution [closed]

If you’re looking to have a product catalog, with no option for purchase at this stage, and are looking to potentially have the option for visitors to purchase via the online store at a later date, I’d recommend using WooCommerce along with the Catalog Visibility Options extension. This enables you to disable the purchase functionality, … Read more

Display WP posts in 3 responsive columns

<?php $the_query = new WP_Query(“showposts=6&cat=1&orderby=rand”); while ( $the_query ->have_posts() ) {$the_query ->the_post(); $i++; if ($i == 1){echo “<div class=row-fluid>”;} ?> <div class=”span4″> Random Post <?php echo $i ; ?> </div> <?php if ($i == 3){echo “</div><div class=row-fluid>”;} if ($i == 6){echo “</div>”;$i=0;} } wp_reset_postdata(); ?>

Conflict between mathax and wp-Typography

You can tell wp-Typography to not process the code inside certain elements — go to Settings » wp-Typography in your site’s backend and add the appropriate items to the appropriate areas. If you’re not sure what the appropriate items are, have a look at the source of one of the pages where you’ve got some … Read more

How do i use the use the wooCommerce functions in a wordpress plugin?

I believe, the hook is called differently add_filter( ‘manage_edit-product_columns’, … ) The ‘woocommerce_edit_product_columns’ is not a hook name, but a function name in WC 2.0 As for the access to global $woocommerce – as long as the WooCommerce plugin is loaded, it’s available. If, however, your plugin is loaded before WooCommerce (alphabetically), then you can … Read more

Banner editable from backend

Is there perhaps an easier solution than programming it all myself? Download the Black Studio TinyMCE Widget plugin from http://wordpress.org/plugins/black-studio-tinymce-widget/. Activate the plugin and drag and drop the Black Studio TinyMCE widget in your desired sidebar. Works great and tested with WordPress 3.6.1. Picture taken from the plugin’s screenshots.

Change post permalink to external URL from custom field

Filter post_link (or post_type_link for custom post types), fetch and validate the post meta value, then return that instead of the original link. As a plugin: <?php /** * Plugin Name: External Permalinks * Plugin URI: http://wordpress.stackexchange.com/q/64285/73 * Description: Uses the value of post meta field <code>syndication_permalink</code> as permalink if available. * Version: 2012.11.13 * … Read more