Can’t custom taxonomies have same terms (slugs) as categories?
I knew that it’s not possible to have same terms (term slugs) under categories and tags, but surprisingly, as I realized today, that’s the case with custom taxonomies as well.
I knew that it’s not possible to have same terms (term slugs) under categories and tags, but surprisingly, as I realized today, that’s the case with custom taxonomies as well.
We are using CPT’s to manage a frequently asked questions page on a site, where the question is the post title and the answer is the post content. There is a main page for the FAQs that shows all posts (FAQ archive page). With this structure we really have no need for the single view for any FAQ and in fact would like to omit it from the site structure. To address permalinks we’d like to set them to be something like example.com/faq/#uniqueIdentifier, thinking that we’ll use the #uniqueIdentifier to match a div on the archive page containing the answer and call attention to it in some fashion. The uniqueIdentifier could be post ID, faq question title, data from a meta box, or something else.
I have created a custom post type called “events” and have also created a custom taxonomy which only shows up on this specific post type through which the admin must select an “event category” (terms).
I have around 20 wp_cron() functions like the following code. Almost all crons run hourly; a few are daily.
How do you get the content by id and by specific language? I need to display two specific language content in a page, regardless of the session’s language. So far, this is my progress: this works fine for getting the content by id of the active language: <?php $id=47; $post = get_page($id); $content = apply_filters('the_content', … Read more
I need to know what the wp specifications for the usernames are. Like allowed minimum and maximum length, are special characters like ü,ö,ä,ß accepted,..?
I’m trying to hook up some JS so that when the featured image upload box is opened and an image selected I can use Vibrant.js to analyse the colours of the selected image. The hurdle I’ve encountered is that I can’t find any particular event to bind my function to. I’ve looked at various tutorials regarding the wp.media() object, but they all seem to involve replacing the upload box completely. Is there no straightforward way of detecting when the featured image upload window is open and the selected thumbnail preview image is loaded?
I would like to output the Product Short Description beneath the product name inside the order items table inside WooCommerce emails. I think I know where to place code inside the email template file, but I don’t know how to access the description of an item. I don’t see any mechanism to retrieve it. What … Read more
I can see that wp_nonce_field generates a value in the hidden field.
How can I execute a function, when admin changes the user role of a user?