Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

New answers tagged

-1

This should be Yoast SEO related. In your WordPress admin dashboard navigate to SEO -> Search Appearance. Then, on the Taxonomies tab you can edit the "Archives" text (and many other strings).


0

First display the product which is featured, then display the product which is not featured. Hope below code will helpful for you // Display featured Product first. $query = new WP_Query( array( 'post_type' => 'product', 'post_status' => 'publish', 'posts_per_page' => -1 , 'tax_query' => array( array( 'taxonomy' => ...


0

Assuming the format is always: Prefix: Archive Name, we can just find the first colon followed by a space, and only show the content after this, using get_the_archive_title() with PHP's substr() and strpos() functions. <?php // Only show the portion of the string following the first ": " echo substr(get_the_archive_title(), strpos(get_the_archive_title(...


1

Yoast SEO can have limitations for archive pages. Try a different SEO plugin such as Rank Math perhaps. Your other option would be to open the archive.php file of your theme and add your custom code in there if required. You may also contact the developers of that podcasting plugin to see if they have a solution. That title is inserted through your theme. ...


0

I haven't tested this, but I found a sample that was close. I have modified it to be similar to what you want. I'm not sure it is 100%, but it should get you really close: add_action('pre_get_posts','wpse_filter_parents_only'); function wpse_filter_parents_only($query){ if (!is_admin() && is_category('26')){ $query->set('...


Top 50 recent answers are included