Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tags]

The built-in taxonomy 'post_tag'.

-1
votes
0answers
13 views

Given a list of words and frequencies, how can I generate a word cloud in wordpress?

I wish to add a word cloud to my wordpress page which depends on the user input. Basically, the user can select a subset of words and he will get a word cloud based on that. Short of using a pre-...
0
votes
0answers
16 views

Incorrectly Displaying Tags at Tags Archives Page

I'm working in Wp Job Manager Plugin with job tags addon but i face incorrectly display in tags archives after update plugin and the theme (i don't know who did that) when i go to a tag keyword ...
0
votes
0answers
19 views

Drodown list return issue

I made a function that doesn't work properly: it correctly returns the slug of the selected tags except the first one in the list. Someone can help me understand why please? The code is below ... ...
0
votes
1answer
35 views

How to get links to previous and next archive page based on tag

I use Extra theme from Elegant themes. One of specific functions of this theme is category layout builder, which creates archives posts based on taxonomy. I have created such layout pages based on ...
0
votes
1answer
23 views

How to count posts in tags within time limit

When we list tags we can get the count and even sort by count like this: $tags = get_tags([ 'orderby' => 'count', 'order' => 'DESC', 'include' => $term_ids, ]); But how can we ...
1
vote
0answers
24 views

woocommerce product tags display

I am using shopfront for sons website, while I can usually manage to sort out things with a little research (thanks everyone) I am stuck, He has a lot of tags showing on every item he sells (which ...
0
votes
0answers
8 views

Ajax load specific tag

I have the next code what works in the same way: 1. When i click on the title link, the content of the post is displaiyed without page reloading. 2. I want to add to this code the next functionality: ...
0
votes
0answers
15 views

I cant remove TAG from URL even in HTACCESS

i tried putting dot in permalinks (which is like 2012 fix) but it didnt work so i added that code to htaccess RewriteRule ^category(.+)$ http://example.com/$1 [R=301,L] RewriteRule ^tag(.+)$ http://...
0
votes
2answers
30 views

Why do I have categories with duplicate slugs?

I have inherited a WordPress site, where I'm trying to resolve a weird-looking issue related to post categories. In the Edit Post page, there is nothing showing up under Categories (Gutenberg editor)....
0
votes
0answers
10 views

How to upload image meta tags through CSV

I am hoping you can help. I have searched forums low and high but unable to find the answer to my question. Basically I have over 600 product images in my woocommerce store that are attached to ...
0
votes
2answers
13 views

Tags on products vs tags on blog posts. An easy way to duplicate them

So, I was doing some SEO work for my company's website. The website is an online e-shop, where you can learn about their products and make an order. They also got a blog. So far so good. The set up is ...
0
votes
1answer
17 views

Title tag come up differently on search results

When I Google our company's name I get a much shorter title tag then when I search for a keyword that we rank for. The correct title tag shows when I look for our company through keywords but not when ...
1
vote
1answer
55 views

Warning: sizeof (): Parameter must be an array or an object that implements Countable, On products pages

I have a WooCommerce WordPress Theme installed. I'm getting an error that public users can see, So I need to fix it ASAP. The error is shown on all products pages, Here is the error: Warning: ...
0
votes
0answers
18 views

WordPress Tag Cloud Filter Prevents Widget HTML from loading

I have a sidebar in wordpress registered like this: register_sidebar( array( 'name' => 'Blog Sidebar', 'id' => 'blog_sidebar', 'before_widget' => '<div ...
0
votes
0answers
15 views

Unable to Change Title in WordPress Dashboard

I am unable to make any changes to my title tag. When I put the cursor on the Title place it automatically hides. I tried to change it through Yoast SEO plugin but still, it is not working. Kindly ...
0
votes
2answers
40 views

Exclude posts in home slider from sections

I have home page with a main slider and news section. Main slider Sport section news Economy section news Politic section news and others section The main slider get posts by tag ='slider', and ...
0
votes
0answers
17 views

Query nested posts, return if top level post contains a child certain tags

I have posts sorted by two categories ('Chapter' and 'Paragraph"). The 'Paragraph' post can contain several tags. Not custom post types. The 'Chapter' has a relation (via ACF) to the 'Paragraph'. I'...
0
votes
0answers
11 views

Remove tag from all posts when publishing new post

I need a function that does the following when a new post is published: Checks all existing posts and removes the tag "latest" if it exists It adds the tag "latest" the the post being published This ...
1
vote
1answer
10 views

Get count of custom post tags

I am trying to get the count of custom post tags gd_place_tags. But I just get the value "0" back. function tag_count( $tagatts ) { $tagatts = get_terms( array('taxonomy' => '...
0
votes
0answers
23 views

Why doesn't the_tags( ) accept empty string for first argument?

Why doesn't the_tags( ) accept empty string for first argument? It accepts this: the_tags( 'Text: ', ', ', '' ) But not this: the_tags( ' ', ', ', '' )
0
votes
0answers
23 views

Display all tags even if they are not assigned to a post

Tags will not display if they are not assigned to a post/page. Is there a function that will allow a tag to be displayed when it is not assigned to a post or page? example: If you click on the "...
0
votes
1answer
24 views

Any way to make custom taxonomy field searchable?

I have added custom taxonomy field on tags, but when I search that field search is not working. Any way to make it searchable in WordPress dashboard?
0
votes
1answer
27 views

How to get tags with custom taxonomy field?

I have added custom taxonomy fields on tags but when I use get_tags() it does not return custom field. Right now I am using get_term_meta() for custom field but I have 4000 records of tags so when I ...
1
vote
1answer
47 views

Group posts by custom post type

I created a custom post type called Game, and created 3 posts under it, Game A, Game B and Game B. I also want to create more posts, like guides and tutorials, for Game A, is thre a way to group ...
0
votes
1answer
20 views

Changing Post Tag Color Based On Post Count

I have post tags that must always display. I want to change the color of the tag if there are no posts. I am looking for guidance on how to find the count and change the color of the post tag link ...
1
vote
1answer
27 views

How to make a custom taxonomy selectable in post publish area?

I registered a new taxonomy: function all_about() { register_taxonomy( 'all_about', array('post'), /* if you change the name of register_post_type( 'custom_type', then you have to change ...
0
votes
1answer
27 views

How to add independent “Tags” to Custom Post Type?

I'd like to create a custom taxonomy called "Tags", just like the native one that can be found on Posts, with the same name/slug but independent from it: 'taxonomies' => array('post_tag') I know ...
0
votes
1answer
35 views

Filter Tags for current users

I have a custom post type call question which have custom taxonomies which is called question-tags. These question tag further used for creating dynamic quiz. I want to restrict users to use question-...
0
votes
0answers
22 views

How to select tags in the frontend

Please help. I want users to be able to add posts from the frontend. It works for me, but I do not know how to do it to choose one of the existing tags. I have this code (used from here, but ...
0
votes
0answers
21 views

Filter posts with tags of the attachment?

Is there anyway I can filter posts with the tags of the attachment? I'm pretty new to wordpress. Current arry: $args = array( 'post_type' => 'post', 'post_parent' => $post->ID, '...
0
votes
1answer
22 views

Change Size of P Tag on One Page Template [closed]

I have two blog types on my website (Blogs and Updates). I need to change the P tag font size in both page templates. These are the page templates that show a list of the posts/articles. Blogs page (...
0
votes
1answer
19 views

show recently added tags to tag cloud

Is there a way to show the most recently added tags to tag cloud? Do I have to use the https://developer.wordpress.org/reference/functions/wp_tag_cloud/ thank you
1
vote
0answers
135 views

How to display “Category and Post_tag” component in a CPT Gutenberg edit screen?

I want to use Categories and Tags everywhere in WP (Articles, Pages, Attachments and CPT like for example Jetpack-Portfolio) I have been able to show these 2 core taxonomies (category and post_tag) ...
0
votes
0answers
15 views

Add category to curent category filter - link

I want to place a link to a category (cat2) on the page MySite.com/category/cat1/ that takes you to MySite.com/category/cat1+cat2/ But if you already are on MySite.com/category/cat3+cat1/ I want it ...
0
votes
1answer
18 views

add_action pre_term_description vs. pre_category_description

I am trying to set a default tag and a (different) default category description in case there is none given on creation. I have found the action "pre_category_description", but no equivalent for the ...
0
votes
1answer
73 views

Sync All Post Type Tag

I have a few post types in my website. Is it possible that all post type using the same post tag? For example: PostType A have a "Apple" tag. PostType B, PostType C, PostType D use PostType A "Apple" ...
0
votes
1answer
10 views

Inserting article:tags meta in html head-element, using get tags, no wp_head

I´m trying to add code to a template file of mine, working with a raw theme I generated from “”. The file is a duplicate of single.php and called single-post.php. Like WP states in Codex. I am trying ...
1
vote
1answer
14 views

Please help me to figure out how to display my tags

desperately looking for help. Have a Wordpress theme which does not display post tags on a single page and I badly need to have them there. Developers only named a file which needs to be modified. It'...
1
vote
2answers
50 views

Exclude specific tags (by id) from the_tags

Within a single post I show all tags of the specific post by using this: the_tags( $tags_opening, ' ', $tags_ending ); But sometimes I mark a post with a tag that should not appear on that single ...
1
vote
1answer
21 views

Is possible add icon in title posts only in specific tag?

I want to add an icon in title posts only in posts with specific tag. Is this possible? I've already tried these codes, but they didn't solve my problem: Approach #1 if (is_tag('162')) { ...
0
votes
1answer
68 views

getting posts by tags

i use below code for getting posts by word tag $search_songs = array( 'posts_per_page' => -1, 'post_type' => 'songs', 'tax_query' => array ( array ( ...
0
votes
1answer
9 views

getting custom post by tag

i getting custom post by tag - my cod : $search_videos = array( 'posts_per_page' => -1, 'post_type' => 'videos', 'tag' => $search_query ); $new_query = new WP_Query( ...
1
vote
1answer
10 views

how can i add all my tags to tagcloud?

Hello i would like to show my all tags as a tagcloud . But i want to show all my tags some of them i added manually and they are not connected with any article? Is there any way to do it this code ...
0
votes
0answers
35 views

How are special characters encoded in tag-URL?

I am trying to get the right link to Tag-Pages/Archives with JS out of the tag name. For the tag "abc" I can use ?tag=abc. But for "$$" neither ?tag=$$ nor ?tag=%24%24 (used encodeURIComponent) work. ...
0
votes
1answer
30 views

How do I tag every author in their posts that they have made previously

So here is the situation, I have a wordpress blog site that is a few years old, and every user had a different account to post with. Now what i want is a plugin/script that automatically adds the ...
0
votes
1answer
36 views

Changing input type from text to multi select dropdown - skill taxonomy

Really need help with a wordpress code please. I have a field on a form which adds tags to the post. Problem is, its free for anyone to enter anything. This keep populating the "skill" taxonomy. The ...
0
votes
1answer
48 views

How to add a class to anchor tags using the get_the_tag_list(); function? [duplicate]

What's the easiest way to add a class to the anchor tag using the get_the_tag_list() function? For example by adding; if(get_the_tag_list()) { echo get_the_tag_list('<ul><li>','</li&...
1
vote
1answer
32 views

Display tags with random thumbnail from selection of posts with that tag

What I want to achieve consists of two parts: First a set of containers that display each tag (with name, description and link). This is easily achieved with a get_tags and foreach loop. <?php $...
0
votes
0answers
19 views

tag based subscription

I have different tags based on products, I want that when new post published then only attached tag's subscribed people will get mail. If this is possible with category then I am fine with changed my ...
0
votes
1answer
23 views

Change the color of post title on specific tags

I have running site with many categories, I don't want to mess around with code... I am thinking to add a condition to make -for example- the post title as red if the post has a tag "football", and ...