## get_terms name__like list categories according to letter

Question
My categories are basically authors, and I would like to create a function to list them according to their surname. For example I'd like to have something like: E: Heinz Erhardt Albert Einstein Eminem The problem is, I also have authors with only one name ...
0
6 days 0 Answers 16 views

Question
I know how to count how many posts has a certain tag, or category For example: $term_slug = 'some-post-tag';$term = get_term_by('slug', $term_slug,$post_tag); echo $term->count; BUT! Is there anyway to count how many posts that have a tag AND a specified category? I want to count ... 0 6 days 0 Answers 16 views ## How to add a post without assigning to a category? Question Can any one please explain how to add a post in WordPress without assigning it to any category. Actually I want to display some news or some quick information. So, it does not come to any category in my blog. ... 0 7 days 0 Answers 15 views ## wp_list_categories depth and number Question My code is as follows:$custom_args = array( 'orderby' => 'name', 'order' => ...
0
7 days 0 Answers 17 views

## Show custom menu in category and its posts

Question
I have a category X of posts. The category page and it's individual posts are all part of a custom menu consisting of pages and posts. My submenu, in the sidebar, works fine for showing on the pages, but doesn't show ...
0
1 week 0 Answers 18 views

## Show the parent taxonomy by creating shortcode in woocommerce?

Question
How would I create a shortcode to show the parent taxonomy in woocommerce? My product categories should be like: - Food -- Fruits --- Healthy Fruits --- Organic Fruits -- Meat --- Pork --- Lamb --- Beef For example, I would like to ...
0
1 week 0 Answers 19 views

## Twillio Send SMS Published Post

Question
I followed the Twilio tutorial on sending an SMS when a post is publsihed. It works, but any time you make a change to the post and update, it sends another SMS. Can anyone point me in the right direction ...
0
1 week 0 Answers 18 views

## How can I hide a category from Contributors in the edit/add new post screen?

Question
I have a situation where I need to hide a specific category and it's children from users who are logged in as Contributors. I don't want them to see this category and it's children in the categories meta-box on the ...
0
1 week 0 Answers 14 views

## In if…else condition, the else statement shows even if if statement is correct

Question
Will please someone help me why this happens. Firstly here is my code. add_action( 'woocommerce_after_add_to_cart_form', 'sione_enquiry_button' ); add_action('woocommerce_cart_actions', 'sione_enquiry_button_new'); function sione_enquiry_button() { if(!is_product()){ return; } if (has_term( 'blue-block-frames', 'product_cat' )) { ?> <input disabled style="padding: 5px 20px;background: #193670!important;border: 0!important;color: white!important;" type="button" ...
0
1 week 0 Answers 17 views

## How to display the past events in one of the category?

Question
I my project I have the events page where it display all the upcoming events according to the dates. But my client needs to have one more category called "Past events", where all the past events should be stored there. ...
0
1 week 0 Answers 17 views