Get the link for RSS item to display in feed

The the_permalink_rss() is echoing it’s content not returning it. If we look at the source of this function: https://developer.wordpress.org/reference/functions/the_permalink_rss/ We can just copy what it’s doing, as it’s a simple function. $link = esc_url( apply_filters( ‘the_permalink_rss’, get_permalink() ) );

Way to querry data (tags) from a wordpress database?

Looking at your page the content is empty. <div class=”post_tags”></div> It seems you aren’t inserting that PHP code correctly into your page. To do so you have to two options: Without using a plugin. Add the following code in your functions.php function list_all_tags( $atts ) { $tags = get_tags(); $html=”<div class=”post_tags”>”; foreach ( $tags as … Read more

Unset Category if other Category is unset during post transition

You can use the deleted_term_relationships action to check if some term is removed from a post object. This hook is in the wp_remove_object_terms() function custom_remove_category( $object_id, $tt_ids, $taxonomy ) { if( $taxonomy == ‘category’ ) { if( in_array( 3152, $tt_ids ) ) { wp_remove_object_terms( $object_id, [1208], ‘category’ ); } } return $object_id; } add_action( ‘deleted_term_relationships’, … Read more

WordPress child theme fails to override parent navigation menu in /inc/structure/header.php

You need to copy to your child and edit the function where the file is included, probably ´shop_isle_primary_navigation´, to change the path where the file is located. WordPress only loads automatically from child the default files, that’s the ones defined in template hierarchy. You can read more about this at https://developer.wordpress.org/themes/basics/template-hierarchy/