Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5527

op.3no.2 on "[Plugin: WP Marketplace - Complete Shopping Cart / eCommerce Solution] Find categories in MySql"

$
0
0

Nevermind, I figured it out!

For anyone who is curious, you have to call
{$wpdb->prefix}term_relationships
{$wpdb->prefix}term_taxonomy
{$wpdb->prefix}posts

and find where they intersect to pipe a certain category to a page.

Then, to make shortcodes for different categories, edit your functions.php [like so: //INSERT CATEGORY 9
function wpmp_category9_products($params){
include(WPMP_BASE_DIR.'tpls/catalog_category9pianos.php');
}]
and hooks.php [example: //ADD SHORTCODE FOR CATEGORY 9
add_shortcode("wpmp-category9", "wpmp_category9_products"); ].

So if any of you are curious about how to make shortcodes to pull products from certain categories to a page, feel free to message me.


Viewing all articles
Browse latest Browse all 5527

Trending Articles