Questions tagged [labels]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
30 views

Adding Text after Post Title based on Category using IF Condition - But not for menu items

Some posts have a more "readable value" even though they are free to read. To highlight their increased reader value, I've managed to get together this piece of code. "Problem" is, ...
user avatar
0 votes
1 answer
62 views

Hiding Label via CSS

I'm trying to hide some text and a checkbox on this URL: https://bndlstech.com/wholesale-registration-form/ Specifically, I'm trying to hide the "Copy from Billing Address" text and checkbox....
user avatar
0 votes
1 answer
31 views

Wordpress Include 'print_f' in WP_Customize_Control array [closed]

I have the following problem: I want to add print_f in an array in wordpress. printf( __('Option to share on %s', 'themename'), 'name') However, the following code does not work properly for me. ...
user avatar
  • 3
0 votes
1 answer
29 views

Featured Category or Special Category in WordPress

Is there a way to make a category that will show in all categories in WordPress? For example, categories on my website are: Cat A Cat B Cat B1 Cat B2 Cat B3 I want a post tagged in Category A to be ...
user avatar
0 votes
0 answers
29 views

How to add label/badge on bookable product based on their booking status

How to display a badge/label on the product image based on the booking status of the product. Ex: If the product is booked for 1 month it shows the product status as "Booked" and after 1 ...
user avatar
  • 1
0 votes
1 answer
385 views

How can I change "Users" related labels in the wordpress dashboard

I am looking to change all the labels related to the Users type to Participants. Example Add New Participant, Edit Participant, etc. Similar to changing the posts post type labels to News or some ...
user avatar
  • 307
0 votes
1 answer
38 views

Help with with my function for wordpress

i have a question if i wanted to hide the title if nothing is entered how can i achive this with this fuction i would be greatful for any help add_action( 'woocommerce_single_product_summary', '...
user avatar
0 votes
1 answer
122 views

get_the_term_list( get_the_ID() label formatting?

is it possible to change the style of the "label" of the result of a get_the_term_list( get_the_ID() ? $film_tags = get_the_term_list( get_the_ID(), 'film_tags', 'Tags: ', ', ', '' ); is there a ...
user avatar
  • 25
1 vote
1 answer
63 views

Change the Labels of Users to Customers in Admin

Ok, I've been searching for over an hour for something I thought (and still think) is pretty simple. I need to change the title Users to Customers in the admin for a client. I can and have easily ...
user avatar
  • 111
0 votes
1 answer
134 views

Use Case: Multiple Shipping Methods per Order

Use Case: Multiple Shipping Methods per Order Context We have a WooCommerce online store with 2 products: Framing Product. Price: 50 USD. Print Product. Price: 20 USD. Plugins installed: FedEx ...
user avatar
  • 1
0 votes
0 answers
167 views

How to change category labels in different colors?

I want to change category labels colors on every item in my blog list and also in every single post depending on the category. Also want to change background colors of the items for every category. ...
user avatar
0 votes
1 answer
39 views

Admin Bar - Customizer Label Change

I'm desperately trying to find out the best way to change the label "Customize" in the admin bar on the front end to "Customize Theme." Have tried just about everything with no luck. Any help would ...
user avatar
  • 1
2 votes
1 answer
5k views

ACF get field label in custom code

I have some custom code in order to display my custom fields the way I want. Unfortunately, with this code I can't seem to access the $field['label']. I tried various ways but don't really know how ...
user avatar
  • 159
0 votes
1 answer
92 views

Simple filter to change label name of Email Adress to something else

i searched the whole internet without finding an adequate answer: I simply want to change the label of the Email Adress from "Email-Adress:" to "Example" i think this can be done by a simple ...
user avatar
1 vote
2 answers
5k views

How to edit T&C checker text in Woocommerce checkout page? gettext?

I'm trying to edit wording in terms & conditions checkbox on checkout page (order review section), but without luck. It was easy to edit other fields like billing and shipping fields. But I'm not ...
user avatar
  • 37
0 votes
1 answer
108 views

Displaying image instead of post label in wordpress

I'm new here and brand new to Wordpress in general. I have a page with different types of recipes - easy, medium, difficult. I am using a "Custom Post Type" to format it, which is fine, and I am ...
user avatar
  • 1
0 votes
1 answer
142 views

Locking in navigation labels before changing title?

How can I stop menu navigation labels from changing when the page titles change. I often use a bulk page adder to create the hierarchy I need. However, once I change a page title, the navigation ...
user avatar
  • 179
0 votes
0 answers
223 views

Changing menu label to post name for custom post type

I have a custom post type. I would like the user to see the post name when they select the custom post type in the admin menu to edit it. I currently have this: $labels = array( 'name' => _x("...
user avatar
0 votes
2 answers
1k views

Changing a text label into an image

I want to change a text label to an image. This label is on WooCommerce shop page. The script contains the text "Member discount!": $label = __( 'Member discount!', 'woocommerce-memberships' ); I ...
user avatar
4 votes
2 answers
6k views

How to get the singular name of a custom taxonomy?

I have got something like this: $taxonomies = get_object_taxonomies('my_post_type'); foreach($taxonomies as $tax){ $args['labels'] = get_taxonomy_labels( (object) $args ); $args['label'] = $...
user avatar
  • 43
0 votes
1 answer
105 views

Displaying all Custom fields on post except some

I have been trying to display all my custom fields listed like this on my page: Label1: Value1 Label2: Vaule2 and so on. But I only interessed the the label - I have this code: <h3>All Post ...
user avatar
1 vote
1 answer
83 views

Error after upgrading WP from 4.0.6 -> 4.4.2: empty value in wp_post_types['post']

I’m attempting to upgrade a WP install from 4.0.6 to 4.4.2. Most of the update went swimmingly, but I’m faced with a pretty cool error message I can’t seem to figure out: Warning: ...
user avatar
4 votes
1 answer
2k views

Is there a way to set singular/plural labels for taxonomy term names?

Let's says I have a taxonomy called Types. I know I can have a singular name when registering the taxonomy... so I could just set the singular label to Type. But is there a way to the same/similar ...
user avatar
  • 3,133
1 vote
1 answer
5k views

reset password label text change

Please see my screenshot. I want to change the "New Password" label text and "login" text. I used following code to change the hint text. function change_password_hint ( $text ) { if(basename($...
user avatar
  • 13
0 votes
1 answer
89 views

How to get the Author type Label Language

I am working on a plugin and I need to have the word 'Author' appear in whatever language is set in the wordpress settings. I have achieved this for the words: Posts and Pages using this code: $...
user avatar
0 votes
1 answer
330 views

Change "empty trash" button text?

I was able to find information on how to change the edit views text but so far I've come up empty with changing the text of the "empty trash" button. I'd like to change it for my task management CPT ...
user avatar
0 votes
0 answers
37 views

Add "New" label to post not older than 24 hours [duplicate]

I did not found many results when searching in Google and the items that I found did not help me very much. How can I add a label "New" to posts that are not older than 24 hours? Is there a function ...
user avatar
0 votes
0 answers
37 views

Customizing label/title output of admin nav_menu selecter

On the left side of the menu editor, where you can add Page, Posts, Links, or Categories to a menu, how would I append a string to the title that shows up next to the checkbox? I've tried using ...
user avatar
  • 220
2 votes
2 answers
3k views

Custom Post Type and taxonomies's labels localization not working

after a few hours serching on the net I decided to ask here my problem. I'm in a multi site environment and I have this custom post type code: $products_labels = array( 'name' =>...
user avatar
0 votes
2 answers
758 views

Add Labels to Admin Menu ( How To )

I have a custom post type menu called "Notes". It has two basic sub menus: add new and show all. But I want to add more items under these post type but the default array just gave me these. How can I ...
user avatar
  • 3
1 vote
2 answers
461 views

Use translated taxonomy labels in plugin

I'm writing a plugin that works with taxonomy terms. It has, among other things, the capability to create new terms. I'm going to suppose that if users have custom taxonomies, they have taken care of ...
user avatar
  • 234
0 votes
3 answers
3k views

How can I change the label "Comments" to "Review" everywhere in the WP installation without translation

Got the way to change the labels everywhere for the post_type "Post". For a customer site, I need to use the WordPress comments. Just need to change the label from "Comments/Comment" to "Review" ...
user avatar
0 votes
1 answer
133 views

Adding a Filter to Sidbar Login Plugin to Change Login Button Lable

I'm a newbie and I have not been able to find an answer to my question. I have installed the Sidebar Login plugin and I'm trying to change the form labels, specifically,the login button label. I ...
user avatar
  • 1
2 votes
1 answer
2k views

Add description text under input field for new profile fields

How can I modify my following code to add some description text under the input fields? I tried modifying it as you can see with the facebook url field but the text shows up under the field label and ...
user avatar
  • 176
0 votes
1 answer
684 views

Get current menu item label for specific parent menu [closed]

I have one custom menu in theme. You can see Buying menu have child archive page. i.e Active Listing. So what I want to do is at the top of the archive page for buying I want to display menu label. ...
user avatar
0 votes
3 answers
1k views

Give each post type label a different color?

On my homepage I am using a code to call different post type labels. Example: TV Series: "Once Upon A Time" Here is the code I use to call the label: <a href="<?php echo get_post_type( $...
user avatar
2 votes
1 answer
5k views

How can I use a different default admin menu icon for custom post type?

For a particular custom post type I'm setting, I simply want to change the default icon to the wordpress pages icon (menu-icon-page). I know I could upload my own pages icon and point to it, but can ...
user avatar
  • 970
-1 votes
1 answer
363 views

Adding a content rating system

I run a multiple author site and the content is directed to various age groups. Instead of forcing the writer to manually note which age group the post is appropriate for, I want to add a content ...
user avatar
0 votes
1 answer
3k views

Custom Post Types — $args vs. labels array

I registered a new post type, and I was wondering what the difference was between the $args and labels array. Read more about it in the codex (can't have more than two links, sorry). For example, ...
user avatar
  • 125
2 votes
2 answers
4k views

How to change the label text in default setting pages?

I've seen various tutorials on how to modify the menu items of a Wordpress Site's admin, but I'm trying to find a tutorial or way on how to modify the actual admin page labels. Here's what I mean: ...
user avatar
5 votes
3 answers
6k views

get post type plural

Currently I'm trying to get the post type labels plural. In detail: $GLOBALS['wp_post_types'][ get_current_screen()->post_type ]->labels->name This is how I'm trying to retrieve it - in ...
user avatar
  • 49.9k