
Similar Posts
Override rtMedia media-gallery.php template into current WordPress theme
Override rtMedia media-gallery.php template into current WordPress theme is now not a problem. For example you have artist role in your users and you want different template for the artist role. This apply in `http://www.sample.com/members/artist/media/music/` page. add_filter( ‘rtmedia_template_filter’, ‘rtmedia_template_filter_override’, 10, 3 ); function rtmedia_template_filter_override( $template ){ global $bp; $role = get_user_meta( $bp->displayed_user->id, ‘wp_capabilities’, true );…
Add sub-page using 1 page without adding another pages using add_rewrite_rule
Add sub-page using 1 page without adding another pages using add_rewrite_rule is very simple but clean strategy most specially if you have multiple sub-pages. Using add_rewrite_rule, your task is done. Please copy the codes to your functions.php. Example: I have this page, https://www.anthonypagaycarbon.com/parent/ and the page ID is 10. [php] add_filter(‘query_vars’, ‘wdes_query_vars’); function wdes_query_vars($vars) {…
Genesis category with featured image after header
Copy the codes below and follow the instructions. FOR SPECIFIC CATEGORY 1. Install Category Featured Images plugin. 2. Add an image to your category post. 3. Create a file that named category-7.php ( NOTE : The “7” in category-7.php is the category ID of your specific category ). 4. Copy and paste the codes in…
Genesis plugins
Genesis Layout Extras Genesis Simple Hooks Genesis Style Trump Genesis Visual Hook Guide
How to get the parent product category ID, Name, etc in specific product?
How to get the parent product category ID, Name, etc in specific product? Just copy and paste the codes below. $object = get_queried_object(); $product_cat = get_the_terms( $object->ID, ‘product_cat’ ); echo $product_cat[0]->name; echo wpautop( $product_cat[0]->description );
Get the sub category of the current product category page
Get the sub category of the current product category page. This code is applied if you are viewing the product archive page. The codes below and a sample category hierarchy list. Example: Category Parent Category 1 Category 2 Category 3 Category 4 Category 1.1 Category 2.1 Category 3.1 Category 4.1 Here’s a code: $category_object =…
Many thanks if you are so kind to fairly share this information.