Tag Info

New answers tagged

0

Normally, if there's a WordPress file on disk, that'll be served first directly by Apache or Nginx, before WordPress gets involved. This is done in your virtualhost config, e.g. in Nginx you'll typically find the following, which tells it to try actual files first before letting index.php handle the URL and generate a page on demand. location / { ...


1

Your problem is that you've misunderstood how categories work. To demonstrate this, I'm going to use a hypothetical taxonomy called "colour": Alice creates a post called 'box', and gives it the category "pale red". The pale red category is a sub category of a top level category named "Red", such that Pale Red is a child of Red. Alice shows Bob the ...


1

You can make use of the get_the_categories filter to remove the parent categories from the list. the_category() uses get_the_category_list() which in turn uses get_the_category() The idea is to check the categories returned against an array of parent ids and then removing those categories from the list. You can try the following (Requires PHP 5.3+) ...


1

As it is explained here 'wpseo_sitemap_' . $filter . '_change_freq' the $filter should be replaced with post type that you want to change, you can replace it with: homepage, blogpage, $post_type . '_archive', $post_type . '_single', $c->taxonomy . '_term', author_archive. while the $post_type variable based on WordPress Codex can be replaced ...


0

It turns out I just needed to return the $title variable which already had what I needed: function woocommerce_endpoint_titles( $title ) { $sep = ' | '; $sitetitle = get_bloginfo(); if ( is_wc_endpoint_url( 'view-order' ) ) { $title = 'View Order: ' . $sep . $sitetitle; } if ( is_wc_endpoint_url( 'edit-account' ) ) { ...



Top 50 recent answers are included