Displaying custom taxonomy in the admin list of a custom post type
Always check the codex – get_terms( $taxonomies, $args ) – your code should read: $genre = get_terms( ‘genre’, array( ‘include’ => get_post_meta( $post->ID, ‘maingenre’, true ), ));
Always check the codex – get_terms( $taxonomies, $args ) – your code should read: $genre = get_terms( ‘genre’, array( ‘include’ => get_post_meta( $post->ID, ‘maingenre’, true ), ));
I implemented a similar custom store locator for a client, and what I ended up doing was saving each lat / lon pair as post meta for a single location post type, and then assigning each location post type to a parent store post type. that way, a single store could have multiple unique locations. … Read more
Start right now with multi-site, before you add content. Moving content from a former single site to multi-site on the same domain is not exactly a seamless process. And yes, subdomains are one of the features of a multi-site setup.
I figured it out. I moved the reference to WP Alchemy within a function that fires after init. Everything now works great and I can use WP_Query within the setup files. Here’s a code reference: // WP Alchemy Setup function jd_setup_wp_alchemy() { include_once WPMU_PLUGIN_DIR . ‘/jonathanwold/metaboxes/setup.php’; include_once WPMU_PLUGIN_DIR . ‘/jonathanwold/metaboxes/cpt-spec.php’; } add_action(‘init’, ‘jd_setup_wp_alchemy’);
If you mean ‘tabs’ as in the way WooCommerce presents the Product Description, Attributes, and Review on the product page then take a look at the template files for WooCommerce. You can find them at ../wp-content/plugins/woocommerce/templates. There’s a good article on customizing the templates at http://wcdocs.woothemes.com/codex/template-structure/ You need to follow these guidelines to make sure … Read more
The only thing I’ve found so far that comes close to what I want is Adminimize. However, while it’s doing what I want, it’s incredibly time consuming to setup, since we need to target the style definitions in the HTML for each field individually, then apply those to the roles we have setup; rather than … Read more
I normally use mysqldump and sed: on old server: mysqldump -u user -p OldWpdatabase > wpdb.sql sed -i ‘s/oldurl/newurl/g’ wpdb.sql on new server: mysql -u user -p NewWpdatabase < wpdb.sql sed is used to search and replace all the hard coded occurrences of the website if needed.
WordPress is not receiving requests, check if mod_rewrite is enabled and an .htaccess file is being generated by WordPress (assuming you are using Apache, not IIS). See using pretty permalinks and fixing permalink problems for more info.
I prefer to enqueue it to the get_template_part_{$slug} action to keep all the scripts in one place & more organized. But you can do it either way you like
So, everything seems to be set up correctly. The setting in your step 2 is everything that needs to be done. I won’t be able to help you without seeing how the theme’s template files are structured. The way it usually works when you apply the setting in your step 2 is that WordPress looks … Read more