Questions tagged [tags]

The built-in taxonomy 'post_tag'.

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

Category to tag converter tool not working

I have a food blog at www.spoonsofflavor.com I have used wordpress category to tag converter tool to convert my categories to tags and tags to categories. Now the issue is some categories are working ...
0
votes
0answers
14 views

Sort posts by number of times tagged [duplicate]

Let's say I have a custom post type Books, and I tag the books with a custom taxonomy "Person". The taxonomy contains the name of a person and basically means the person has read that particular book. ...
0
votes
1answer
10 views

My theme is adding an unmatched end tag and outputting it to my screen

I use a theme that uses WPBakery - I have a feeling WPBakery might be the culprit here. I made a few small changes, and now this is appearing at the very top of the page, above the menu: " /> I ...
2
votes
1answer
33 views

associate custom post type with tags with specific pages

I have various products (custom post type) which already have categories but I have now I have added this line to be able to add tags to the products. 'taxonomies' => array('post_tag') So, I ...
0
votes
0answers
13 views

Duplicate entry '0' for key 'PRIMARY' for query INSERT INTO `wp_terms`

I have a wordpress site that has been working well for the past 6 years. Recently, I have been getting errors on: user creation tag creation I realized that user creation was yielding Duplicate ...
0
votes
0answers
4 views

RSS feed: How do I change the category node to show up as hashtags?

In the current RSS feed, for one of my posts it would show the category and post tags like this: <category><![CDATA[Music]]></category> <category><![CDATA[michael ...
0
votes
0answers
54 views

Unwanted word behind my title in SERP

Can anyone here help me about my title problem in google? My title in google result page do not exact match with my title tag. If you search with keyword "itclax furidacchi" in google, my title there ...
0
votes
0answers
8 views

Add user tag to corresponding custom posts

I use The events calendar plugin as a timetable for scheduling staff. Each event (custom post) represents a shift. Each event title (post title) is named after the particular employee of that shift (...
0
votes
1answer
31 views

How to show tag count for individual product post in wordpress woocommerce

I am using WordPress Woocommerce as a review platform rather than a eCommerce site. When a review is made, a pre-set arrangement of tags are able to be used for each individual product post. Currently ...
-2
votes
0answers
16 views

IMg alt tags not showing

So i've added alt tags to all my posts, but i ran a site audit through ahrefs and also on https://www.seoptimer.com/alt-tag-checker and a lot of alt tags just aren't showing. I;ve also viewed page ...
2
votes
1answer
20 views

WordPress tag cloud add more links

Due to location constraints, the Tag Cloud widget settings display 30 tags. Can I insert a custom link at the end of the tag cloud? So that I can link to a tag archive page. Thanks in advance!
0
votes
0answers
14 views

How to show text near a specific word/tag/category?

can someone give some examples of code that I can use in the tag and category loop pages, which will give out the content near a word? Here is an explanation. The default function of the category and ...
0
votes
0answers
15 views

Filter posts by tags, if they have have the same amount of matching tags, filter by date. WHAT?

I know basic WordPress development. I still get confused with what functions can be used outside of the loop and inside, blah blah. But for the most part, I can handle the basic development needs of a ...
0
votes
1answer
24 views

Fix wp_term_relationships slow query in get_posts

I used the Query Monitor plugin to find slow query on my WordPress site. The below-mentioned WP_Query->get_posts() takes about 0.3446 query time out of the total Database Query time of 0.3976. ...
0
votes
0answers
17 views

Code to insert TAG taxonomy Wordpress

I made a grave error. I delete many TAGs from the database of my blog. Many TAGs were orphaned. And yet, unfortunately, many posts have anchor words that link to deleted tags. That is, several links ...
0
votes
0answers
21 views

Remove status 'archived' from the default post and page view

I have some page status on my wordpress platform : All, mine, draft,published and ARCHIVED as you can see on the picture below When i go to pages, default view is on ALL pages a got 62 pages on my ...
0
votes
0answers
8 views

Wordpress page attributes on tag edit

I have it done for categorie but I need also the page attributes on te tag edit page and add tag page. How can I do this? See attachment.
1
vote
1answer
16 views

Sorting Tags by Slug Value

In wordpress the tags are display alphabetically by default. How can I sort the tags by slug value and keep that order in the front end?
0
votes
0answers
22 views

Can't figure out how to rewrite this URL : http://mysite/mypage.html?myVar[]=item1&myVar[]=item2

i explain what i try to do. First i have WP 5.2 and Php 7.2. i have a form which send a variable array like myVar[] to another page template. the url is http://mysite/mypage.html?myVar[]=item1&...
1
vote
1answer
69 views

Can paginate_links() be customized for a specific category or tag?

I am creating category and tag page templates for my client so they can post news articles to the news category page and specific news pages separated by tag with a pagination nav at the bottom of ...
0
votes
0answers
28 views

Sorting Tag Cloud by Popularity

So I have the default Wordpress Tag Cloud Widget on my sidebar/footer and I found the following code to limit the number that it's showing because it took up a ton of space. This code however is not ...
0
votes
1answer
29 views

Remove <figure> tag on my RSS Feed

I need to remove the tag that appears on my feed content ($content variable). http://mkt-d.hospedagemdesites.ws/wp/feed/ Is there an existing function to this task? Some tags appear with width ...
0
votes
1answer
16 views

How do I create a WP endpoint that retrieves all custom post types that have a tag?

I have a custom post type, let's call it 'capability'. Each capability can have one or more tags. I have a searchbox on the frontend that the user can type into to search for all capabilities that ...
0
votes
1answer
17 views

How to add a rest field to post tags?

I'm doing a headless wordpress, so using wordpress API. Using Yoast, I've added yoast SEO data to my post types API endpoints like this: function wp_api_encode_yoast($data, $post, $context) { $...
0
votes
1answer
25 views

Top tags with minimum number of posts

I'm getting the most used tags in the 1 day interval and everything works fine but how do I add the limitation to get tags with at least 5 posts and order them by counting? Actual code: $term_ids = $...
0
votes
2answers
44 views

How to search from specific post type with tags?

UPDATED: I have a Custom Post Type Commercials. This post type has a title and a video id. I want to search from this specific post type. Right now it returns result which matches the titles only, I ...
0
votes
2answers
24 views

Include future posts in tags and in search

I am using something like this to query and display future or scheduled posts on my homepage: <?php query_posts('post_status=future&posts_per_page=10&order=ASC'); while ( have_posts() ) : ...
0
votes
0answers
11 views

how to show all of post's “categories” that include a specfic tag for those posts

How to show all of post's "categories" that include a specific tag for those posts under those categories Thanks Mario
0
votes
1answer
28 views

List posts that don't have a specific tag?

I am trying to list posts that do NOT have specific tags. Currently, I am looping through each tag in a post, and if it's doesn't exist, list it. This works, except that it will list the same URL ...
0
votes
0answers
34 views

Can / should / how should I convert my Wordpress categories to tags?

My website uses Categories for work that I think belongs with tags. How, perhaps with the Better Search Replace plugin, can I convert all my Categories to corresponding tags?
0
votes
1answer
24 views

Insert text BEFORE the “tag” title

I'd like to insert text BEFORE the "tag" title. So, I am using Categories and Tags and I when I click into one of my "tag" archives the title of the page is simply the word of the "tag" so in my ...
-1
votes
1answer
32 views

SQL Query : how copy all tags of post into their post content in wordpress by sql query

I want to copy/move all tags of a post into posts content, as text form not in a link form. For example: A post has: a title in title field, some content in content field (like: a ...
-2
votes
2answers
63 views

how to loop through blog posts in php

I need help looping through a simple php code. What I'm trying to achieve is the following: Start Loop Look for all the posts Add the author first & last name as a tag (links to /tag/firstName-...
-1
votes
1answer
48 views

show limited tags in an article

I have a code that returns all the tags for the article. But that is not what I want, I only want to return the author name as the tag. <?php the_tags() ?></span> <br /> This will ...
1
vote
1answer
29 views

How to remove these comments and html tags from the content?

These are actually input fields. paragraph is the textarea field. i query the contents from database and try to show them in this textarea field. But the textarea field is showing me unwanted comments ...
0
votes
0answers
24 views

Filter posts instantly based on tags

Being a php newbie I can't figure this one out (should be quite simple, but I still need complete and working examples to work from myself for now). I have a page displaying a list of all posts (> ...
0
votes
1answer
76 views

Adding a H1 Tag to Post Tags automatically, but hide the tag? (Same for Category)

So to increase my SEO score I require all tag pages to have a H1 title, for example website.com/tags/taghere would need the title: <h1>TagHere</h1> or simply <h1>taghere</h1> ...
0
votes
0answers
26 views

Erase ALL CSS and javascript Type tag

i need erase all type tag for styles and javascripts for my wordpress. I have this code and this work, but not 100%: //* Remove type tag from script and style add_filter('style_loader_tag', '...
0
votes
0answers
11 views

How to remove base tags at the wordpress

How to remove base prefix from the tags without needing a plugin, because the plugins that existed were discontinued.
0
votes
2answers
26 views

How do I exclude categories from get_tags?

I have this function $tags = get_tags( array('exclude' => 11, 12) ) Which excludes specific tags 11 and 12. But without manually having to add each tag ID I don't want shown, how do I exclude ...
0
votes
1answer
44 views

Echo tag name if post has one of the tags

I'm trying to echo one of the tags the posts has. There are multiple tags, around 40. Currently I'm trying: <?php $tag = get_tag(16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, ...
0
votes
1answer
18 views

Does WP automatically tag posts into the archive?

We have about 700 posts on our WP site and some of the older ones (+5 years) seem to get tagged as "Archived", under the tag "tag". I attached a screenshot of the search result with the same article ...
0
votes
0answers
13 views

Search by tag inside category page woocommerce

I am working on this site http://peelslapstick.juvoclients.com/ and inside category page there is a filter on the left with the tags (using location names inside tags), this tags were included using ...
0
votes
0answers
13 views

When creating category, it creates automatically tag, or, when creating tag, it creates automatically category in same name

I have a weird problem. For example, when i create test category, worpdress is creating tag as test automatically. Or vice versa. I tried everything i know. 1) Disabled theme and plugins. 2) ...
0
votes
0answers
8 views

Creat list of tags and number of posts

How can I download to an excel file a list of all tags used with the number of post each tag is used on.
0
votes
0answers
17 views

How to use categories and tags widgets together?

Is it possible to use wordpress build in tags and categories widgets together? For example selecting first category and then tag showing only the posts that match both? I searched for some kind of ...
0
votes
0answers
21 views

I want to edit the tags template by adding text that displays all tags from the listed posts

So I have tag "Iphone", I enter on page of this tag and there I get the: h1 description Listed posts that have this tag I want to add between description and listed posts the sentence: You can also ...
0
votes
0answers
26 views

Display and Sort Tags by Last Word / Name

I have a page which lists all tags (artist names) for a certain category along with links to that artists work. Each post only has one tag if that helps simplify things. I am trying to order the tags ...
0
votes
0answers
31 views

tag cloud and CPT UI taxonomy

I've made a lot of searches and tests to resolve my issue, but I'm still stuck… So here I am! I use the plugin event calendar pro, wich have "organizers". Each organizer has his own page. I use the ...
1
vote
1answer
47 views

Can't query tag and post_type at the same time

On my developer site this query is used for a carousel in index.php : $vedette_accueil = new WP_Query(array( 'tag' => 'vedette-accueil', 'nopaging' => ...