winningsem
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] [Plugin: WooCommerce – excelling eCommerce] Quantity SoldI found the solution it was pretty easy
WooCommerce add a custom field with the product sold you can just echo it
<?php echo get_post_meta($post->ID, ‘total_sales’, true); ?>a screenshot of what it does
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] 2 connected posts inside each otherjust in case you need this
the code in function.php///////////////////////// function my_connection_types() { if ( !function_exists( 'p2p_register_connection_type' ) ) return; p2p_register_connection_type( array( 'id' => 'communities_to_builders', 'from' => 'builders', 'to' => 'communities' ) ); } add_action( 'init', 'my_connection_types', 100 ); /////////////////////////////// ///////////////////////// function my_builders_to_home_design() { if ( !function_exists( 'p2p_register_connection_type' ) ) return; p2p_register_connection_type( array( 'id' => 'builders_to_home_design', 'from' => 'builders', 'to' => 'home-design' ) ); } add_action( 'init', 'my_builders_to_home_design', 100 ); ///////////////////////////////Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] 2 connected posts inside each otherCode Looks better here :): http://pastebin.com/SccCm4yQ
Forum: Fixing WordPress
In reply to: Taxonomy template file in custom themeyeah using the way i mentioned above worked with custom permalinks
Forum: Fixing WordPress
In reply to: Taxonomy template file in custom themeWell I have lots of trial and I couldnt get it to work with the taxonomy-taxonomy-(insert your taxonomy here).php
then I tried to usesingle-(insert your taxonomy here).php
ans surprisingly it worked 🙂
So I guess the
taxonomy-(insert your taxonomy here).php
is equivalent to category.php
and this
single-(insert your taxonomy here).phpis equivlant to single.php just the wordpress docs didn’t explain that good enough
Forum: Hacks
In reply to: How can I create a custom post type with empty slug?Sometimes it doesn’t work unless you update your permalinks under settings > permalinks > Save Changes (Even if you didnt make any changes to the permalink in that page) it refresh the mod rewrite and get your new permalinks