Target a specific category from a custom taxonomy?
I ended up using this bit of code and it worked: <?php if (has_term(‘adult-dvds’,’product_cat’)) { ?> <p>blah blah blah</p> <?php } ?>
I ended up using this bit of code and it worked: <?php if (has_term(‘adult-dvds’,’product_cat’)) { ?> <p>blah blah blah</p> <?php } ?>
Yes, you’ll need to set this as variable product. After selecting variable product, go to attributes. Name it – for instance – Number of Attendants. Then in the values area enter – 1 attendant: $125|2 attendants: $195 At this point, press publish. Then select the variables tab and click on the items – 1 attendant … Read more
I would suggest using a minify plugin that will automatically combine all the scripts and styles for you. Here are a few that will do it for you: http://wordpress.org/extend/plugins/w3-total-cache/ http://wordpress.org/extend/plugins/bwp-minify/ http://wordpress.org/extend/plugins/wp-minify/ http://wordpress.org/extend/plugins/minify/
Just remove the filter when it is called the first time: function add_link($link) { // this will guarantee the filter will not be called again. remove_filter( current_filter(), __FUNCTION__ ); return $link . ‘<a href=”http://site.com”>Link</a>’; }
You can, but WP doesn’t offer you the possibility to do it in a nice way, so you have to use output buffering. Something like: // before template is included add_action(‘template_redirect’, function(){ // you can do some checks here // perhaps you need this only a certain page? if(!is_home()) return; // capture output from here … Read more
It doesn’t need a new submit URL, most of the plugins submit the form on the same page(the one on which the form was rendered), then before rendering the form they check if there is submitted data present. Then for eg. if data is present then they have to show a thankyou message & skip … Read more
WooCommerce does not support this specific scenario. The primary issue in this case being that WooCommerce processes orders at the order level NOT the line item level. So if a customer were to order items from multiple sellers you create a situation that will cause serious problems and headaches. When the first seller marks the … Read more
You can hook from the custom.php file inside /wp-content/thesis/skin/skin-name/ Or you can use this box http://www.rickbeckman.org/the-brazenly-coded-box-for-thesis-2-0/ to write PHP codes directly inside Thesis skin editor.
Take a look at WordPress hooks from the Plugin API. There are actions and filters to be used by plugin authors so that other developers could alter the content without changing the core code. However, if they are not used properly (or missing), the only two options are CSS changes (wherever possible, because stylesheets could … Read more
Perhaps WP_PLUGIN_DIR? WP_PLUGIN_URL is responsible for URLs.