Your $tag_id
variable is not defined before use. Try a test with a fixed value in there:
<p class="klientWlasciciel">WLASCICIEL: <?php echo 'Tag Description: ' . tag_description( '1' ); ?> </p>
… or test the default behavior which should be the current queried tag:
<p class="klientWlasciciel">WLASCICIEL: <?php echo 'Tag Description: ' . tag_description(); ?> </p>
https://codex.wordpress.org/Function_Reference/tag_description
Related Posts:
- Displaying Only Certain Tags in Loop
- Must Use Plugin Causing Query Error
- Custom Tag Description unable to display just below and outside of the Loop
- List posts that don’t have a specific tag?
- Limit tags shown in post
- Display product attributes for current product
- Displaying post per day
- Guidance with The Loop for CMS
- tag search using WP_Query
- How to add active class to custom menu using while loop and wp_list_pages
- Print html when custom field has value inside while loop
- Post from one loop in different containers?
- Custom Loop Pagination on WordPress
- show limited tags in an article
- delete an array element when its date expires
- User Defined order on get_categories?
- When would you use $_post instead of $post?
- How do I display the function the_content in this loop?
- How to get to a specific position in wp_query?
- Advanced Custom Fields: Post Object – Not returning data [closed]
- Facebook “like” open graph meta in header.php
- PHP code to call image Caption, Alternative Text, and Decription?
- Adding country tags automatically
- How can I add multiple ‘tax_query’ arrays via a loop?
- Using foreach loop breaks
- Loop with slider (slider not loading)
- How to hide all child pages with post_query?
- How to sort posts based on the value (number) of a post’s metadata?
- Move category description below post list in blog
- Displaying Woocommerce Product Category in WordPress
- How can I add extra word in permalink when someone click download button?
- Blog posts repeat
- Woocommerce : Can’t get product info in loop
- Checkbox doesn’t stay checked, conten
- If tag equals then show else show
- Way to bulk make all my tags lowercase?
- Changing the_posts_navigation() html output
- Can we count the WordPress Loop
- Need to put a script above tag in header.php – WP 5.7.1
- Add content after the first post in WP Loop
- Display an image if odd number of posts in grid
- Store post content in a php variable and output them using for loop
- What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?
- 2nd page displaying the exact same posts as my first page (minus the very first post)
- Is the 404 page automatically displayed if a loop returns nothing?
- Last class on last headline?
- WordPress query undefined offset in loop
- How to pass a variable to get_template_part that’s updated every time the template part is called?
- use loop to return blog details
- How to add post meta in while loop?
- Echoing a CSS class based on category of post in a list
- Calling function in loop causes repeat data
- How to Generate a list of Most Commented post?
- How to pick “full/thumbnail” images in the loop?
- How to Fix an Archive.php That Displays All Posts?
- Php code error in wordpress if else statements [closed]
- How to add ASCII symbol after each recent post [closed]
- pagination broken – clicking next displays “page not found”
- Search.php gets metadata from first post
- the_post(); prints out style text into my HTML?
- remove specificly the last tag in all posts
- How do I get pagination for get_posts() in WordPress or do I have to rewrite the whole code?
- Check if current post in loop is last on current page
- How to display category and tag descriptions in a post
- How do I create a WP endpoint that retrieves all custom post types that have a tag?
- adding or removing endforeach; throws error!
- Adding PHP to an if else loop
- Accordion headings cuts off to second line on collapsing a accordion heading (used acf repeater)
- WordPress Recent Posts – Loop
- ACF background-color per post in a WordPress loop
- Advertisement in Loop Posts wordpress
- PHP for loop not working as intended
- Display tag links on archive page?
- Adding custom PHP to existing loop in Genesis
- How to Pass Current Taxonomy Terms into new WP_Query?
- Insert div after every three posts in home.php [duplicate]
- How do you change the tag font size in the repeater-template.php [closed]
- PHP tag in post content makes wordpress go crazy
- For each 3 posts, show a different post type
- Loop returns more items than exist?
- Modify category archive page loop on functions.php
- WP_Post is not from correct array
- Post formating on Home page
- divide custom field values in div every two values
- WP Knowledge Base Theme bug – Subcategories and Articles, Need to change WP_Query
- Limit ads appearing more than three times
- Loops in category description
- Inserting A Feed and Sidebar into an HTML Page
- Pagination on Custom Loop
- What is the best way to get the first few post from WordPress in different divs using a loop?
- Advanced Taxonomy query, with 3 post types
- Custom single.php files for different post formats
- Troubleshooting “loopback requests that take too long”
- Why does a meta_query break this WP_Query?
- Loop on a wordpress Page instead of content coming from the WP text editor
- How to create a loop where loop changes every post?
- Help with if/else loop [closed]
- $_html is empty when var dumped
- How do I display WooCommerce products in my query to rows of 3?
- How to get posts by a certain author in inner loop using outer loop variable or post title WordPress