Questions tagged [tags]

The built-in taxonomy 'post_tag'.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

Tag posts on front end

Is it possible to have a simple input field to add existing tags on a frontend form? Here's an example of what I would like to achieve:
0
votes
0answers
7 views

How can I create zip code search filter to link to specific agent(s) on same page?

I have a page on my site (https://eliterenetwork.com/member-roster/) that has a list of agents that are categorized by states they do business in. I'd like to create a search filter at the top of the ...
0
votes
1answer
24 views

Is it possible to have “two” sets of tags?

I have several Custom Category Taxonomies but what I am wondering is, if it's possible to have a second set of "tags"? I am using my tags for a very specific purpose (the naming of cities) ...
0
votes
2answers
13 views

Show the amount of posts in a tag in a specific category has

I am creating a page template in Wordpress that displays multiple tags that are in a particular category. I have this working, but now I want to have the number of posts within each tag that is ...
0
votes
0answers
17 views

<span> tag on post name category. how can i remove this? [closed]

this is my category post name result, i just creating some category and adding into my post.
0
votes
0answers
10 views

How to Display Custom Formatted Blog Post with Provide tag name as attribute in Shortcode

I want to make Shortcode where if client pass the name of tag(available or added in blog posts) as attribute then it will show 2 blog post from that mentioned tag. as i cannot ask him to do all html ...
0
votes
0answers
11 views

Images and Links Not Working on Tag View

We frequently (almost always) use images and HTML links in our blog posts. When I go to Mysite.com/blog or click individually on any of the posts, all the images and links work correctly. If I click ...
0
votes
0answers
13 views

How to get all the tags only from taxonomies that contain the currently selected tag?

I've been trying to find a way to do this, but I don't see this mentioned anywhere or any examples of code coming even close to accomplishing this... so here is what I am trying to do - I have a ...
0
votes
1answer
15 views

How to edit the <body> Tags within the image file URLs?

At present, my image files appear within the following URL structure: www.example.com/wp-content/uploads/year/month/image-file-name.jpg These image files, contain the following Body Tag <body ...
0
votes
0answers
17 views

Editing Categories and Tags (esc_html__)

I'm trying to style my category and tags list. I'm using underscores.me theme to make my custom theme and I'm not sure how to insert classes in this function. Inserting the class in span tag is ...
0
votes
0answers
25 views

Filter on the_content doesn't update the content being searched via register_rest_route

I'm trying to get my custom REST route to include search results from a filtered the_content. I'm trying to automatically include the post tag names within each post's content, so that searching can ...
0
votes
0answers
11 views

Tags property fetch HTML tags

For an unknown reason, I am facing issue with Tags post property. For some reason, it fetching HTML properties along with tags. Any suggestion? Thanks Thanks
0
votes
0answers
15 views

Filter according to tag on category page

In my website I have a CPT called "Experiences". All the experiences that I have added are divided into custom categories (slug -> our_experiences ) such as "Outdoor" , "...
0
votes
0answers
19 views

Adding WordPress Tags to the searched fields in customized search query

I have a website where I need to be able to search for Posts based on title, tags, and content of custom fields. I've made the modifications below to my functions.php file. (Code for including the ...
0
votes
0answers
10 views

Filter posts by tags in a category

I need a little help. I made a page where I listed posts in a certain category. I'd like to filter this posts by tags. My question is how to get tags for each posts and how to write a code for the ...
0
votes
1answer
18 views

Wordpress admin display post type tags as checkbox

I used Wordpress ACF plugin to created a post type called resource, also I created two tag categories named resource-type and resource-topic, I can added in those tags in the post by the enter certain ...
0
votes
1answer
16 views

Randomizing wp_tag_cloud() in child theme

I'm trying to write a wordpress function code in my child theme that randomizes the words in the word cloud where previously it was alphabetized. The code Im using is below, which doesn't work. // ...
0
votes
1answer
21 views

See if a post has a specified tag

I'm trying to see if a post (thru id) has a specified tag if has_tag( $tag = 'Cat', $post = $post_id ) { $taganimal = "Cat"; } I tried this, but it just crashes the site . Got idea ...
0
votes
1answer
26 views

How to get an array with all categories and corresponding names?

I want to create a selector control in the Wordpress customizer with all the existing categories and for that I need an array with all the categories and their names. I need to get an array like this: ...
0
votes
1answer
54 views

Multiple Tag Filtering

I am writing a theme for Wordpress and I need a tag filter tool for posts, that can filter by multiple tags simultaneously, without a submit button, no checkboxes, no radio’s, and a show all posts ...
0
votes
0answers
20 views

Custom WP search not looking at page tags

So, i created a custom search using WP_Query and it is working as i need it to except for the fact that it does not seem to be searching in page tags (i have a custom plugin that allows me to add tags ...
0
votes
1answer
40 views

Count several post tags

This maybe should be posted on a php forum, but since it's WordPress related, I'm giving it a try here.. With this code, I'll get the total count of posts work a certain tag; $term = get_term_by('...
0
votes
1answer
29 views

get taxonomies from terms

I have two post types Documents News Items with categories for each post type, Documents -- PDF, Word, Excel News Items -- Articles, Releases BUT they share the same tags. Documents -- BOSS, EFF, ...
0
votes
0answers
12 views

how to change footer quick links menus(Primary menu) for certain pages

Need to change Footer quick links menu and footer tagline for certain pages only we have working on School site it have both higher secondary school pages and nursery school pages if we click the ...
0
votes
0answers
6 views

Create the tag page ONLY if the tag is associated to more than 5 articles

I want to write a plugin which prevents wordpress from creating an archive page (I mean that the url must not exist) for a tag which is used only on an article. This means I should modify: the ...
0
votes
2answers
43 views

Count how many posts have a specified tag AND category

I know how to count how many posts has a certain tag, or category For example: $term_slug = 'some-post-tag'; $term = get_term_by('slug', $term_slug, $post_tag); echo $term->count; BUT! Is there ...
0
votes
1answer
26 views

edit_tag_form_fields is depricated but tag_edit_form_fields doesn't work

I need to create, retrieve, update and display a custom field in Wordpress tags. This code works for displaying the custom field, but its deprecated. function tag_edit_form_fields ( $term ) { ?> ...
0
votes
0answers
17 views

Display related posts based on matching the category and a tag within a custom taxonomy group

Hi community and thanks in advance. My aim, I simply want to display Pubs/Bars related by the same area tag, automatically, on every post. I found and followed what looked like an excellent solution ...
0
votes
1answer
23 views

The Difference Between Categories and Tags and Taxonomies and Terms

I've got a custom post type 'articles' and I've added a custom taxonomy 'articles_categories' which has its own terms. I was under the impression you can't have categories and tags on custom post ...
1
vote
0answers
9 views

Disable stored tags queries in admin page when posting a new post

First of all, I am sorry because I am a bit newbie here and I am still learning forgive me, please. I have a Wordpress website blog and I have a very big database of tags stored in MySQL the problem ...
0
votes
0answers
18 views

Should I use 'tag', 'cat' and 'tax_query' parameters together in a WP_Query?

What I'm building I'm developping a plugin. I'm currently filtering the posts by tags and categories (tag and category_name WP_Query parameters) with values given in a shortcode. I want to add the ...
0
votes
0answers
14 views

call difrent post not last post

Hi i want to select different post in home page. homepage / index.php it shows all last post and from same movie (series). I want to show movie different way as I cannot see two post from same ...
0
votes
1answer
40 views

Redirect wordpress search query if its a tag

i have modified this function to make it redirect search query if it a tag example if searchQuery='football' then redirect to /tag/football/ function redir_search($a) { if (is_search()) { ...
0
votes
1answer
15 views

Get posts that match defined arrays of tags

I've been scratching my head a lot and couldn't find a reasonable solution that would not require multiple queries. In my case, the posts have multiple tags, but they can be divided into to "sets" ...
0
votes
1answer
26 views

WP Query for Posts (Products) in Specific Category that has 2 Specific Tags (*AND* both tags not *OR*)

This is really confusing me. I've tried numerous things but cannot get appropriate results. Here's what I currently have for my query: $args = array( 'post_type' => 'product', 'tax_query'...
1
vote
1answer
26 views

mystery tags which I didn't add - vulnerability?

I recently looked at the tags for my WP site and saw dozens of tags which I didn't add, and which seemed unrelated to any posts I've ever made. Many of them looked like random dictionary words. A ...
0
votes
2answers
26 views

Retrieving Tag Name in Template Part from Filtered URL

WooCommerce has a built in product_tag url filter as such: https://my-url.com/my-page/?product_tag=my-slug Bringing back all the product_tags with the given slug in the url. I am trying to do ...
0
votes
0answers
11 views

How to create tags automatically based on category and location?

hope you are all doing good, as i am running listing site on wordpress, so the creation of tags manually would be tedious as I have a lot of categories and locations (taxonomy), so need to automate ...
-1
votes
1answer
19 views

Change background image based on tags

I'm in a great need for little php script help. My dyslexia makes me dependent on already written scripts and help from others. I've found a site that has a short script that changes the background ...
0
votes
0answers
12 views

WordPress: SQL query to set TAG or CATEGORY if 1 or more words are written in post_title

SQL I need to set the TAG or CATEGORY in a post if there is a keyword in the post_title. Eg: IF "abc" word in post_title THEN set post TAG to "zzz" or IF "abc" word in post_title THEN set post ...
0
votes
0answers
19 views

Spinner doesn't go away on saving new Category/Tag, although request returns status OK (200)

I am building a new wordpress theme. I noticed when I create a new category/tag and hit add category/tag button in wp-admin. The spinner doesn't go away and it keeps rotating. I have checked in ...
0
votes
1answer
20 views

How to get post with associated categories and tags names instead of ids with rest api?

When i retrieve a post from rest api i have the following response : { "id": 2598, "date": "2018-10-15T06:20:10", "modified": "2019-05-16T23:35:50", "slug": "lorem-ipsum-dolor-sit-...
0
votes
1answer
48 views

how to display posts content on the custom css popup by clicking on each title on the sidebar?

I want to display post titles based on post_tag from default post_type concat with post_category from another post_type named 'update' on the sidebar. And finally When users click on each title it ...
1
vote
0answers
37 views

Force Balance Tags not working

I am trying to shorten my the_content() word count to 200 while retaining the html formatting as well as the shortcodes. I am pretty close but for some reason, I cannot get force balance tags or ...
0
votes
1answer
20 views

exclude product with available tag

I have classic WP_Querry: $products = new WP_Query( $args ); with $args = [ 'post_type' => 'product', 'posts_per_page' => 500, 'product_cat' => 'cars', ]; If I want products ...
1
vote
1answer
32 views

Do not change the order of the tags in the editor

I have a list posts by tag, but the relation is not relevant because first look for the posts with the first tags stored alphabetically, and not the first main tag, that is to say for me the order of ...
0
votes
0answers
20 views

Diplay product tags in shop page after each product name

I'm looking for a solution to add, in the shop page, for each product the according product tags. I intend to do this using a hook and place the product tags in the product_title_end location. I'll ...
0
votes
0answers
34 views

How do I display a tag cloud to only show tags specific to the article page?

I have article pages that are related to a handful of tags, but what I want to achieve is having the tag cloud only show the tags that are related to the current page. For instance, normally the tag ...
0
votes
1answer
46 views

Display text if title in archive has specific word

In tag pages, I want to display specific text if the title containing a specific word. As example: I have a Tag and tag archive page: Yellow Banana And I want to display “cool fruits” in all tag ...
0
votes
1answer
33 views

How to set “section categories”?

I've made a custom post type "Artwork" with CPT UI. In the settings of my CPT, I enabled access to these taxonomies "Categories" and "Section Categories". When I view my post list, I not only see a ...

1
2 3 4 5
25