Questions tagged [description]

The tag has no usage guidance.

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

Add Custom Category Description When Empty

Under the woocommerce product category page, i've been trying to find a way to auto-generated a text to show in that default "short description" area, if i don't input any description when i ...
user avatar
  • 1
0 votes
0 answers
17 views

How can i remove JUST Description tag from wp_head() function?

Hello i am using wordpress 5.8.1 and i want to remove just description tag. I didn't get any solution can anyone help me for the same. Thanks!
user avatar
0 votes
0 answers
85 views

How can get Woocommerce product single description

I get the description of the shortcode products but they all come as text. Can I make a separate paragraph or list for each? Following my code: functions.php add_shortcode( 'product_description', '...
user avatar
  • 15
1 vote
0 answers
21 views

Custom Tag Description unable to display just below and outside of the Loop

Hello StackExchange Team! In my wordpress tags for custom post type, the code <?php echo term_description();?> or outputs fine just outside and above the loop. The problem I am having is that ...
user avatar
0 votes
1 answer
82 views

Wordpress Show Parent Category Description for Sub-categories

I'm using the Category description, for the parent category, to display above the posts on the category.php page. But, this desc doesn't show on any sub-categories of this parent category, and there ...
user avatar
  • 205
0 votes
1 answer
44 views

Add description to custom plugin setting

Using add_settings_field(); i am able to add my custom setting: add_settings_field('AUTOPLAY', 'Auto Play', 'printAutoPlayCheckbox', 'my_settings'); function printAutoPlayCheckbox() { $id = '...
user avatar
  • 103
0 votes
1 answer
82 views

How to Get The Excerpt of the page that displays Blog Posts

I use a static page (Blog) to display the latest posts. I want to show the excerpt of that page next to the title. However, wen I use wp_kses_post( get_the_excerpt() ), I get the excerpt of the latest ...
user avatar
  • 105
0 votes
1 answer
43 views

how to hide empty fields of post category description?

I am creating one website from scratch, where I have to display Category description, how to hide the div, if there is no description written in backend for the post category? my codes are: <div ...
user avatar
  • 39
0 votes
1 answer
82 views

How to hide description on categories and tags?

Does anybody know how I can hide the descriptions from view for the categories and tags for my website? I have searched for a while but can't find any solutions. I would like it so that when they are ...
user avatar
0 votes
1 answer
28 views

How to test If a post has a particular term

I want to display a different description for a post if it belongs to a specific product category in a filter. I've used the code below code to add the code but it is displaying for all products: ...
user avatar
0 votes
1 answer
88 views

How to display category and tag descriptions in a post

I want to display the category name and description in every post automatically. I have been trying the method of wpbeginner and searching in other platforms but it's not working for me. I cannot ...
user avatar
  • 1
0 votes
1 answer
179 views

Display site description instead of site name

I'm wondering how to display all the network sites in WP Multisite by displaying site description instead of site name. Below is the code provided by the expert in WP in this community. It's now ...
user avatar
  • 703
0 votes
1 answer
587 views

add woocommerce archive description if exist

i want show category description on my archive product page i add this code to my template: <?php if ( category_description() ) ?> <div class="myproductdescription"><?php echo ...
user avatar
0 votes
1 answer
304 views

How to select a paragraph other than the 1st to be the post's excerpt?

My WordPress website has 3 paragraphs and one featured image in a post. How do I make the last or last before para to be the post description?? Are there any plugins to do that? Am already using All ...
user avatar
1 vote
1 answer
70 views

Move category description below post list in blog

i am good looking for a way to move - in blog page - the category description under the post list instead of above by default. Can i do that with a php function without changing the theme files ? ...
user avatar
0 votes
0 answers
52 views

How to prevent tag "iframe" from being deleted from the heading description of rubric?

I can’t insert html tag "iframe" in the description of the rubric/categories. The tag is deleted along with the content. How to prevent tag "iframe" from being deleted from the heading description?
user avatar
0 votes
1 answer
103 views

How to display featured image description and title?

I'm displaying a featured image (as a background) in a hero div, and using the caption to add some content from the Media Library automatically. I'd also like to use the image's description field and ...
user avatar
0 votes
1 answer
24 views

Something adding an excessive meta description

I have a WordPress running with Woocommerce and a commercial theme. My problem is that something is adding an extra meta tag(og:description) and it is getting on my nerve since it's content which is ...
user avatar
0 votes
1 answer
28 views

How to add a link to an external website in the description of a customizer control (with Kirki)?

I'm building a Wordpress theme and I use the Kirki Customizer framework to add controls and settings to the customiser. I added a description to some controls, using the following code: 'description' ...
user avatar
0 votes
1 answer
73 views

How do you change the site preview description/thumbnail

I'm not quite sure what this is called so I'm not sure what to search. How do I change the website's URL preview image and description? For some reason it's an email and I can't find where to change ...
user avatar
0 votes
0 answers
220 views

How can I remove the product short description from the WooCommerce Mails?

I do have a rather large short description because it does fit perfectly with my theme, but unfortunately those information are added to the emails that are send to customers and mess with their ...
user avatar
  • 1
0 votes
0 answers
141 views

Limit user description length in characters

How can I limit character length of user description field? I want to restrict users within 250 characters. I've added the code to solve this- add_filter( 'pre_user_description', '...
user avatar
  • 175
0 votes
0 answers
2k views

How Can I Display the Category Description in a Theme with no Category.php or Archive.php?

I'm trying to display the category description on category pages below the title (category name). The challenge is that my theme is based on _s and doesn't have category.php or archive.php files ...
user avatar
1 vote
1 answer
880 views

Change description on specific WooCommerce product status change

In WooCommerce, when I add couple of code lines to change the product description, on product status change, the website throw an error when submitting (saving). My code: add_action('...
user avatar
1 vote
1 answer
578 views

HTML tags in bloginfo description

I'm trying to set some <span> tags in the bloginfo description. So I put this in the blog description field: <span class="name">Archive | Navarro Vives</span> <span>is a point ...
user avatar
  • 462
0 votes
1 answer
88 views

Line break description wordpress

Currently in Wordpress 5.1, I create custom fields including a description field using the text editor of worpress, however I encounter a problem no line break is made. Is there a function for the ...
user avatar
0 votes
0 answers
25 views

Post Thumbnail: Is there a possibility to add a description to the meta box? [duplicate]

Probably many of you are using the Post Thumbnail feature: https://codex.wordpress.org/Post_Thumbnails I wonder if it is possible to add a description to the post thumbnail meta box in the admin area....
user avatar
  • 495
0 votes
1 answer
77 views

Trying to update the meta description of the home page

We use the Yoast SEO extension and under Search Appearance, in the meta description box, I have updated our Wordpress blog's meta description an saved the changes. It has however been more than a ...
user avatar
  • 3
0 votes
1 answer
44 views

How to fix a duplicated meta description?

When audit our website in Google webmaster too, I saw duplicate meta descriptions every pages. I am using: - <?php bloginfo('description'); ?>
user avatar
  • 1
1 vote
1 answer
507 views

Header style different on home and remaining pages

Would it be fairly simple to add different site header and menu styles and assign them to specific pages? I have very basic understanding of how CSS and php work and managed to customise the theme but ...
user avatar
0 votes
1 answer
123 views

Get Term ID by Description

I need to return the taxonomy term ID based on the terms description. Is this possible? I know the description along with the term ID is held within the wp_term_taxonomy table. However I was ...
user avatar
1 vote
1 answer
728 views

How to display post content instead of excerpt

I am using a plugin, and to get around something I need to add some text to the excerpt field on my posts, but I don't want to display the excerpt field data on the front end, but rather the post ...
user avatar
  • 123
0 votes
2 answers
128 views

How strip the quotation from the meta descrption?

I checked the HTML validator. But, the message is the following. Quote " in attribute name. Probable cause: Matching quote missing somewhere earlier. The meta description is automatic from the ...
user avatar
  • 1
0 votes
0 answers
165 views

Reorder title tag and description tag with wpseo_title and wpseo_metadesc

I'm trying to change the order of the title tag and description tag (CMS Wordpress, plugin Yoast SEO). Now in the code of the page it looks like this: <title>something ...</title> <...
user avatar
0 votes
1 answer
82 views

How do I change the style of just a part of the tagline?

I'd like my tagline to have specific styling - but not all of the tagline, but just some words should be bold/italised/different color. How do I wrap <span> around specific tagline words? Can it ...
user avatar
  • 29
3 votes
1 answer
1k views

Show menu item description with line breaks

I have a problem with my theme... I use Agama, and i've checkmarked "description" in the menu settings, but it won't display it on the frontend, since the theme doesn't allow it. But then I found ...
user avatar
0 votes
2 answers
356 views

HTML code in WordPress menu description

I tried to place HTML code in WordPress menu description, it's showing an inline code <i class="fa fa-cloud"></i> instead of an icon. Already tried that one but still not working // ...
user avatar
  • 135
0 votes
1 answer
373 views

How to access into the description of a sub menu

Well, I'm trying to get the description of a menu item and of a sub menu with the code attached below, but I'm not able to get it. I'm trying to get the description of "About us" and the description ...
user avatar
0 votes
1 answer
34 views

View tag description on page

Everything works except tag description. Could you help? <?php while($my_Property->have_posts()) : $my_Property->the_post(); ?> <div class="ListaP" style="width:32%; display: ...
user avatar
0 votes
0 answers
31 views

New term taxonomy and description in front page. Input's

what's up guys. In front page i'd like to make 2 text form input's to new term to a taxonomy and discription to this term. I've got a code to add a new term wp_insert_term( 'Apple', // ...
user avatar
0 votes
1 answer
50 views

Why last blog post excerpt is shown instead of meta description? [closed]

Instead of meta description of my main page Google shows excerpt from my last blog post. How do I fix that?
user avatar
0 votes
1 answer
26 views

Assign a default description to new terms under a custom taxonomy

When I create a new term for a custom taxonomy, I would like it to be assigned a placeholder description. The description would be the same for all new terms and can be manually changed if I want to ...
user avatar
1 vote
2 answers
308 views

Return post tags with description

I've got a shortcode working to return tags that are used on a particular post but can't figure out how to return the description with it. function returnpost_tags(){ return get_the_tag_list(''...
user avatar
2 votes
1 answer
43 views

Adding a video description in a similar way to a image caption

I'm looking for a solution to add a short description to a embed video that will allow for it to be styled a bit like the one that is used for images. The only option I have found is using ...
user avatar
  • 59
0 votes
2 answers
7k views

Where does Yoast SEO plugin sets the site/page title?

I am running on WP 4.7.2 and Yoast SEO 4.4. I want to append a PHP variable to all titles. But it seems I am not able to do that. I have read that wp_title used to be the method before WP 4.4, then ...
user avatar
3 votes
2 answers
22k views

How I can get image description/title/alt for gallery image?

I'm displaying a gallery image but I also want display the caption for image. I can get the info that we insert when us upload a image in WordPress Dashboard like "Title/Caption/ALT/Description". I ...
user avatar
  • 165
0 votes
1 answer
473 views

Add visual editor to Media Edit Screen

As of version 3.5, Wordpress added Quicktags to the media description field witch is an improvement over the simple textarea. However, I need a full Wysiwyg editor for a project I'm working on. How ...
user avatar
0 votes
1 answer
368 views

How to disable site title and description when custom header is uploaded on the customizer?

I'm builting my own wordpress theme and I'm trying to create a function with an if else statement to diseble the title and description of the blog when i have a custom header. if I have a custom ...
user avatar
2 votes
1 answer
1k views

Image with description side by side

I'm making a personal website for a client and I want it to be easy to edit. I'm trying to replicate the data the client had on a previous personal website made in pure html, and it looks like the ...
user avatar
0 votes
1 answer
121 views

Is this the proper way to get a taxonomy description into a post template?

I'm wanting to include a taxonomy description in the header on a post template page. I've got the code below working but is it the proper way? Is there a better way to grab and display the description ...
user avatar