Questions tagged [description]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
19 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', '...
0
votes
0answers
28 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 ...
1
vote
1answer
90 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('...
0
votes
1answer
21 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 ...
0
votes
1answer
19 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 ...
0
votes
0answers
16 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....
0
votes
1answer
29 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 ...
0
votes
1answer
29 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'); ?>
1
vote
1answer
22 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 ...
0
votes
1answer
27 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 ...
1
vote
1answer
67 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 ...
0
votes
2answers
23 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 ...
0
votes
0answers
119 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> <...
0
votes
1answer
30 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 ...
3
votes
1answer
357 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 ...
0
votes
2answers
80 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 // ...
0
votes
1answer
218 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 ...
0
votes
1answer
26 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: ...
0
votes
0answers
24 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', // ...
0
votes
1answer
24 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?
0
votes
1answer
20 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 ...
1
vote
2answers
120 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(''...
2
votes
1answer
37 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 ...
0
votes
2answers
2k 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 ...
2
votes
2answers
14k 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 ...
0
votes
1answer
308 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 ...
0
votes
1answer
318 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 ...
2
votes
1answer
713 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 ...
0
votes
1answer
80 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 ...
2
votes
2answers
2k views

How to add meta tag to wordpress posts filter?

For example, I have an url: mysite.com/author/admin It's not considered as single post or single page to add meta tag via SEO plugin. And to this page I want to add something like: <meta name="...
1
vote
1answer
35 views

How can I add an area/option for a custom page description?

I'm wanting to add an area in the Wordpress page editor to display a custom page description in the page headers. Preferably displayed in its won option area similar to the "Page/Post Header Options" ...
2
votes
2answers
2k views

Getting a div content of a post in wordpress?

How can I fetch a div content from a post? Using the_content() can fetch all the data but instead of that, I need specific content from the div only. So far, all I could do was get the link of the ...
1
vote
1answer
146 views

Showing image description along with embedded links below post images

I have images in my Wordpress posts with the following field setup: Caption: This field contains the actual image caption to be displayed below the image. Description: This field contains photo ...
0
votes
1answer
805 views

WPML - Auto Duplicate Post Issue

I'm using WPUF Pro form to submit a custom-post-type vehicle, through frontend. I added a custom function to auto-duplicate post on publish. I notice that when I got the Form in 2nd language (not ...
1
vote
3answers
6k views

How to display a user's bio (not the author or logged in user)

I'd like to (in php) display a given user's avatar and bio (description) and some social media for them (based on their profile info fields). For example, on Page1, display user Walt Whitman's (user ...
0
votes
1answer
2k views

Change the meta description on a specific page?

I want to change the title and meta description on my homepage if it's opened on an android phone. I have this code that changes the title, inside functions.php: /** Modify the front/home page ...
0
votes
1answer
31 views

How to list all names and descriptions of a custom taxonomy

I have a custom taxonomy (toolkit-sections) inside a custom post type (toolkit-tools) and I'm looking to just list the taxonomy names and descriptions from toolkit-sections on a homepage. I don't ...
0
votes
1answer
156 views

How to get rid of Ellipsis on Woocommerce [Essential] Theme [closed]

As the picture says I am trying to remove the three dots that follow the end of the blue sentence (shown in the photo). I am also trying to increase the numbers of characters it can reveal. ...
0
votes
1answer
464 views

Pass $item->description to start_lvl

Is there a way to show parent menu descriptions on the first sub menus when using start_lvl ? function start_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat("\t", $depth); ...
0
votes
1answer
426 views

Set up description meta automatically

How I can setup/override meta description tag values for arbitrary pages of my site? I have a lot of pages, generated dynamically by script. I need to add dynamically generated meta description for ...
4
votes
1answer
868 views

Admin Filter - Add Post Type Description on Post Type Page

WordPress allows adding descriptions to Custom Post Types whenever it's registered. ( register_post_type(). I would like to output that title on the Admin Landing Page ( View All Post Type ) ...
0
votes
1answer
62 views

Why does the default Insert/edit link function in Visual mode in posts or pages produce full urls?

Situation: I'm using the default description field on a page in visual mode. I'm trying to link the words "news page" to the my news page. I pick the News page from the content list that is offered to ...
1
vote
2answers
15k views

Displaying a custom taxonomy term's name & description

How can I display a term's name & description for a custom taxonomy within The Loop (single post page template)? Currently I can show its name like this: the_terms( $post->ID , 'director',...
1
vote
1answer
6k views

PHP code to call image Caption, Alternative Text, and Decription?

Is there a Wordpress PHP code to call an image Caption, Alternative Text, and Decription? I have several images with Titles, captions, alt text and Description fields filled and would like to display ...
0
votes
1answer
526 views

Garbage code showing up in search result post descriptions

I don't know why this is showing up on all my post descriptions in Google: _// _ // ]]> // It is driving me crazy. I am new to this but feel this is the reason my posts are not posting ...
0
votes
1answer
28 views

Loops in category description

I would like your help to find how to do a thing I need: I have some posts, for example: Article Title: Banana Article Title: Orange Article Title: Lemon Article Title: Strawberry All this ...
0
votes
1answer
1k views

How can I add a default description to uploaded files?

Is there a way to add a default description for media files as soon as they are uploaded to WordPress? Specifically, I want to modify the code here to extract the text from PDF files and include it ...
0
votes
1answer
126 views

How can I add a Description column to the media library browser screen?

I'm trying to display the description of each file on the media library browser screen. I've found some code that adds a filename column, but I'm trying to modify it so that it will display the ...
1
vote
1answer
2k views

Customized title tag for each page in pagination?

With the reference of below questions. How to change title tags on paginated posts? Paginate tags page How to change title tags on paginated posts? Add Page number to Meta Description in Wordpress SEO ...
0
votes
1answer
5k views

How Can I limit the visible part of the short-description on the Category page?

How Can I limit the visible part of the 'short description' in the Category Page? I found the code in theme/woocommerce/content-product.php, but whatever I try doesn't do a thing. <?php $...