WordPress Tags in class
Where are you getting these tags from? Typically, to get a list of tags attached to a post, you’d do: $some_tags = wp_get_post_tags( $post_id); and then itterate through as such: foreach($some_tags as $tag) { do stuff }
Where are you getting these tags from? Typically, to get a list of tags attached to a post, you’d do: $some_tags = wp_get_post_tags( $post_id); and then itterate through as such: foreach($some_tags as $tag) { do stuff }
I see in your screenshot that the URL displays %CAtegory%. You’ll want to go back and make sure your custom permalink is set to %category%. The syntax for populating the URL with the category appears to be case-sensitive.
Remove Custom Taxonomy Slug only without removing Custom post type slug in permalinks
When asigning a post to a taxonomy, if you assign it to both a top-level and child term, the top-level will be used in the permalink. If you only select the child, I believe the parent term will be displayed as well. I agree, that this is not ideal and you may be able to … Read more
I did not use this personally, but judging by the description, this plugin should solve your problem: https://wordpress.org/plugins/posts-to-posts/ Happy Coding, Kuchenundkakao
First off, the “slug” is what it is by definition. There is no such thing as a “front slug”. As you do not elaborate/know on how the anchors/hashes are generated on the server side, all I can give you is a JS solution (proof of concept): if (window.location.hash) { alert(window.location.hash.substring(1)); }
Should be as simple as this: add_filter(‘pre_update_option_permalink_structure’, ‘my_chgcb’); function my_chgcb($newval, $oldval) { return $oldval; } This disables any changes to the permalink setting. You can additionally hide it using CSS.
Ok guys found the solution myself (5 days later, oof) added below to help someone else in the future… foreach((get_the_category( $related_post->ID )) as $category) { $output .= “<a class=\”$category->slug\” href=\””.get_permalink( $related_post->ID ).”\” title=\”” . $category->cat_name . “\”>” . $category->cat_name . “</a>”; } Basically the old link above looked like this… $output .= “<a href=\””.get_permalink( $related_post->ID … Read more
Are you sure that you have deleted completely all previous pages with the slug ‘news’ ? When you click on Trash, the page/post is only placed into the Trash folder, not deleted. You must then empty the trash folder to completely delete the page. If the old page remains in the trash folder and you … Read more
You code is completely wrong. array_shift should not be used array_shift() shifts the first value of the array off and returns it, shortening the array by one element and moving everything down. All numerical array keys will be modified to start counting from zero while literal keys won’t be touched. You should have a look … Read more