What parameters do I need to pass to get_tags to get ALL tags for the site, when used in a post
What parameters do I need to pass to get_tags to get ALL tags for the site, when used in a post
What parameters do I need to pass to get_tags to get ALL tags for the site, when used in a post
Post feature image after post title for single post
DEL media from the post but keep my featured image or post
I believe what you need is the wp_list_categories() function. You would need to do something like this; wp_list_categories( array( ‘orderby’ => ‘name’, ‘show_count’ => true, ‘exclude’ => array( 10 ) ) ); This will list all the available post categories ordered by title. You can have a look at the docs for this to find … Read more
WordPress React re-rendering to many times
Looks like I found the issue. In order to change the category of a post , you cannot use wp_udpate_post() to do so. Instead I used wp_set_post_categories(); Also wanted to note that these are categories that I created in the meta box that is displayed in the post edit page. if ($expireTransient = get_transient($post->ID) === … Read more
I found the issue was with the polylang plugin. For the above to work I needed to add the language info and in particular associated the tag with the language of the post. $result=wp_insert_term($tag, ‘post_tag’); pll_set_term_language($result[“term_id”], ‘fr’); pll_set_term_language is the function provided by the polylang plugin for associating the newly added tag with the language … Read more
How to add first 3-4 post tags on WordPress Post Title
Avoiding duplcate posts on the main page
I figure it out. I’m an idiot. I have image folders on my server that were an exact match as the post’s slug. In the above case, I have a image folder named adam-baldwin which causes a conflict in Apache. Once I changed the slug, the conflict resolved itself.