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 [description]

The tag has no usage guidance.

8
votes
5answers
11k views

Remove the category/taxonomy description field?

How can I remove the category/taxonomy description field? The one which shows up on the edit category/taxonomy page.
4
votes
1answer
807 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 ) ...
3
votes
1answer
319 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 ...
3
votes
1answer
851 views

Shortcode content does not show in feed discription/excerpt

I have a shortcode for my content. This shortcode organizes a couple of things in my posts on the frontend. However, when I look at my feed, the content in the entirely leaves out any content from ...
3
votes
0answers
356 views

How to display term description in empty terms archive?

I list all terms from a taxonomy, even the empty ones, but I found out that at least in 2010/2011 themes I got a 404-like message, the default seems to only display the term description when at least ...
2
votes
2answers
13k views

How to use different short description in shop page and in product page in woocommerce

What I would like to have is the sentence "Entre em contacto connosco para saber preços Aqui" just in product page, not in shop page. Please take a look in this page: http://www.kepaweleurope.com/shop/...
2
votes
2answers
13k 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 ...
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="...
2
votes
2answers
1k 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 ...
2
votes
2answers
4k views

How to display a description of a given category from a custom taxonomy

I have a taxonomy called tcp_product_category. In the admin panel I have created a few terms within this taxonomy. On the homepage I want to display the description of one of those terms with the slug ...
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 ...
2
votes
1answer
147 views

How come my first blog post and my home page have the same title?

I am putting together a new blog and for some reason the home page took the title and description of the initial post. Is there a way to just set the home page title/description separately? I am ...
2
votes
1answer
674 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 ...
2
votes
1answer
259 views

Why doesn't YoastSEO allow me to set the title/description for the home page? [closed]

For some reason, YoastSEO set my home page to the first blog post. So the home page canonical, title, and description are set to the values of the first blog post. And when I tried to set the home ...
1
vote
2answers
3k views

Get custom taxonomy description with paragraph tags

I am printing the description for a custom taxonomy of artists with the following code: $terms = get_the_terms( $post->ID, 'artists'); if ( $terms ) { // loop ...
1
vote
2answers
259 views

Change Site Title and Description html tags if not home page

For the purpose of good HTML structure, accessibility and SEO I'd like to change the site's title and description from H1 and H2 to P when appearing on any page other than the homepage. A conditional ...
1
vote
1answer
2k views

Add title, post content, and category like add_post_meta and update_post_meta

How can I update/add a new title, post content, and category to a post with hard PHP code similar to add_post_meta(), update_post_meta()?
1
vote
1answer
76 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('...
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 ...
1
vote
1answer
90 views

Get meta data from image

How can I get the description of the image? $album_id = get_the_id(); $photos = $wpdb->get_results( "select * from wp_postmeta where post_id = '" . $album_id . "' AND meta_key = '...
1
vote
1answer
147 views

How to automatically remove links from WordPress Biographical Info?

I want to automatically remove any kind of links from author's Biographical Info instead of doing it manually everytime. Whenever a user adds any link to the Biographical Info box, it should be ...
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 ...
1
vote
1answer
59 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 ...
1
vote
2answers
109 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(''...
1
vote
1answer
144 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 ...
1
vote
2answers
14k 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
2answers
415 views

Show preset taxonomy description

In educational courses database, institute is used as custom taxonomy. How can I display description of "institute" taxonomy in all related posts as one institute will have at least 50 posts (courses)....
1
vote
1answer
1k views

How to modify an existing meta description?

I'm coding a plugin that allows me to dynamically insert content for my meta description and title. The content is already being pulled fine, the only part I can't get to work is actually filtering ...
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" ...
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 ...
1
vote
0answers
41 views

My “Description” in gallery doesn't accept formatting/html

that's the part of my attachment-page that's responsible for showing image description, which I put when adding a new media (I'm using standard wordpress gallery): < ?php the_excerpt(); ?> Well, it ...
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 ...
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
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
797 views

Display a tag only if there is a description

I'm building a site glossary and trying to display only tags with descriptions. Is there a way to determine if the description is available and only display the tag when it is? Here is where I am so ...
0
votes
1answer
3k views

Category Descriptions - HTML?

Is it possible to allow HTML to be rendered in Category descriptions? My theme uses them quite a lot, and I'd like to style them better with images and links. This seems to be do-able from what I ...
0
votes
1answer
1k views

Change description of my Jetpack facebook shared links [closed]

When I try to share a link from my WordPress site on facebook using the Jetpack Sharing Settings the link shows up like this: (My Featured image picture here) Put a hat on yo’ baby! | Trendz with ...
0
votes
1answer
482 views

Clean links in: the_author_meta('description')

I need to clean any links returned from the_author_meta('description') The code I use is simply that: <p><?php the_author_meta('description'); ?></p> I Searched old question but ...
0
votes
1answer
28 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'); ?>
0
votes
1answer
76 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 ...
0
votes
1answer
2k views

Change wordpress meta tag description using WP functions

I do apprecciate this may sound like the usual question, but it is not. Just to let you understand I do not need to install one of the many SEO Plugin and change it on the box before content is ...
0
votes
2answers
864 views

Add description to custom text widget and display the 5 recent post titles

I am running into a problem where I have no idea where to add in a description so it will show up on the widget dashboard. It just keeps displaying the title. Something else I would love some help ...
0
votes
1answer
567 views

wp_insert_term does not insert description. [closed]

I'm using this code. I cannot figure out what the heck is wrong with it? $args = array( 'description',"My Desc", 'slug' => "My Slug", 'parent' => 0 ); $result = ...
0
votes
1answer
2k views

how to remove description from menu buttons?

I just installed Wordpress into my server and I am currently using the "graphene" theme to test my wordpress blog. I have two pages in addition to the front page, which is "about us" and "sample page"....
0
votes
1answer
29 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 ...
0
votes
1answer
22 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
150 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
415 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 ...
0
votes
1answer
512 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 ...