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'.

0
votes
2answers
21 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
26 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
31 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
22 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
30 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
54 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-...
-2
votes
0answers
14 views

How to remove tags titles on blog posts

I have a blog post with a photo, the tags and categories have been assigned however when the either is selected that title appears over the photo. I don't want the tag to show on the photo. Can ...
-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
28 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
23 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
55 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
18 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
22 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
35 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
11 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
16 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
25 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
25 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
45 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' => ...
0
votes
0answers
17 views

How to get show tag info without coding?

I have posts with tag info like country and city. e.g.: United Kingdom, China, Poland, Sydney... I want to show them on 'Destination' page on my website. Is it possible to do this without coding? If ...
0
votes
2answers
28 views

Show all Tags in each post

I have created a new post type named "Project". And I registered 1 taxonomy "Tags" in it as follows: https://pastecode.xyz/view/844258b1 I entered the tags into 1 article in post type "Project". If ...
0
votes
2answers
44 views

Add HTML code before the title of the Tag page

I want to show an iframe at the top of a specific Tag page, so once I have is_tag('my_tag'), I will add the iframe before the title of the page. I've tried this code to show the iframe before the ...
0
votes
2answers
51 views

Way to bulk make all my tags lowercase?

Is there a way in mySQL or otherwise to bulk convert all my tags into lowercase? Thanks!
0
votes
0answers
20 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
41 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
26 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
56 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
9 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
22 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
38 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
14 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
15 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
21 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
201 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
24 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
42 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
18 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
11 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
24 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
27 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
30 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 ...