revivalz71
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [GeneratePress] Meta Keyword / TagsIt works, thank you for the help.
Forum: Themes and Templates
In reply to: [GeneratePress] Meta Keyword / TagsHello,
Here is how the meta keyword look like on my website. (it’s empty)
- This reply was modified 6 years, 1 month ago by revivalz71.
Forum: Themes and Templates
In reply to: [GeneratePress] Meta Keyword / TagsI just added this, to my functions.php and it doesn’t seem to work.
I made sure to add the tag again and save the post.- This reply was modified 6 years, 1 month ago by revivalz71.
- This reply was modified 6 years, 1 month ago by revivalz71.
Forum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] Widget thumbnail sizeIf i display all the category instead of the current category, it will mess up my website internal link structure, can you please give me a temporary fix? or i will be unable to use the widget, thank you for your help.
- This reply was modified 6 years, 3 months ago by revivalz71.
Forum: Plugins
In reply to: [Rate My Post - Star Rating Plugin by FeedbackWP] Widget thumbnail sizeHow can i make the ‘Top Rated Post widget’ to only display post from the current category?
On my website, it displays the post from all categories, please give me a solution. thank you
There is 2 html element in elementor, after switching to “Custom HTML” element, it’s now working.
Thanks.
I using the Elementor HTML Elements.
Hello,
No i don’t want to use shortcode in snippet, i want to use the shortcode in html.
Forum: Themes and Templates
In reply to: [GeneratePress] Font issuesolved
Forum: Themes and Templates
In reply to: [GeneratePress] Display Subcategory on Category PageThe issue is solved, thank you very much.
Forum: Themes and Templates
In reply to: [GeneratePress] Display Subcategory on Category PageHello,
Thanks for the help, the issue is nearly solved.
I did as you said and added
echo get_cat_name( $category->parent );to the code.Here is what the code look like now.
<?php $category_id = get_query_var( 'cat' ); // Get current catgory ID $category = get_term( $category_id, 'category' ); // Fetch category term object $parent = $category->parent ? $category->parent : $category_id; $args = array( 'show_count' => false, 'hide_empty' => true, 'title_li' => '', 'show_option_none' => '', 'echo' => false ); echo get_cat_name( $category->parent ); if ( $category->parent ) { $args['child_of'] = $category->parent; //$args['exclude'] = $category_id; // Don't display the current category in this list } else { $args['child_of'] = $category_id; } // Get the category list $categories_list = wp_list_categories( $args ); if ( $categories_list ) {?> <div class="subcategory-wrapper"> <ul class="menu"> <?php echo $categories_list; ?> </ul> </div> <?php } ?>Here is what it look like on a parent category: https://imgur.com/a/1v79Crs
Here is what it look like on a subcategory: https://imgur.com/a/mB61WvF_____
I have 2 issue remaining.
Issue 1: When i am on a parent category, the name of the current parent category is not displaying, as you can see on the first image, the ‘Multimedia’ category is missing, how to solve that?
Issue 2: When i am on a subcategory, the parent category name is displaying, the issue is that it’s plain text and do not have a link back to the parent category, check the second picture, how to solve that?
If you can please provide me the full code, so i can finally get this solved, thank you.
- This reply was modified 6 years, 4 months ago by revivalz71.
- This reply was modified 6 years, 4 months ago by revivalz71.
Forum: Themes and Templates
In reply to: [GeneratePress] Display Subcategory on Category PageHello, thanks for the response.
I tried to fix the code but it did not work, there is probably an error in the code since I don’t have any knowledge in PHP.
It would be really helpful, if you can help me fix the code.
All i want is for the code to display the main category and sub category.
– Main Category
– Sub Category
– Sub Category
– Sub CategoryThank you
Forum: Themes and Templates
In reply to: [GeneratePress] Display Subcategory on Category PageI found a code that nearly did what i wanted, the issue is that the main category is missing.
With this code, i get that:
– SubCategory 1
– SubCategory 2
– SubCategory 3
– SubCategory 4What i want is that:
– MainCategory
– SubCategory 1
– SubCategory 2
– SubCategory 3
– SubCategory 4<?php $category_id = get_query_var( 'cat' ); // Get current catgory ID $category = get_term( $category_id, 'category' ); // Fetch category term object $parent = $category->parent ? $category->parent : $category_id; $args = array( 'show_count' => false, 'hide_empty' => true, 'title_li' => '', 'show_option_none' => '', 'echo' => false ); // Show the children of parent category if ( $category->parent ) { $args['child_of'] = $category->parent; //$args['exclude'] = $category_id; // Don't display the current category in this list } else { $args['child_of'] = $category_id; } // Get the category list $categories_list = wp_list_categories( $args ); if ( $categories_list ) {?> <div class="subcategory-wrapper"> <ul class="menu"> <?php echo $categories_list; ?> </ul> </div> <?php } ?>- This reply was modified 6 years, 4 months ago by revivalz71.
Forum: Themes and Templates
In reply to: [GeneratePress] category/subcategoryIf it’s too hard to do, then just disabling the post on the category page would do it, i will then, manually add the subcategory to the parent category.
Forum: Themes and Templates
In reply to: [GeneratePress] category/subcategoryHi,
The thing is that if i use page instead of category, it mess up all the url structure of my post.
That’s why i would rather use category, i just want my parent category to show the subcategory instead of the post.
Thank you