Questions tagged [labels]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
28 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 ...
0
votes
0answers
20 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. ...
0
votes
1answer
17 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 ...
1
vote
1answer
1k 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 ...
0
votes
1answer
21 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 ...
1
vote
1answer
906 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 ...
0
votes
1answer
38 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 ...
0
votes
1answer
72 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 ...
0
votes
0answers
210 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("...
0
votes
2answers
606 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 ...
3
votes
2answers
3k 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'] = $...
0
votes
1answer
91 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 ...
1
vote
1answer
77 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: ...
3
votes
1answer
889 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 ...
0
votes
1answer
3k 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($...
0
votes
1answer
64 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: $...
0
votes
1answer
195 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 ...
0
votes
0answers
25 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 ...
0
votes
0answers
35 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 ...
2
votes
2answers
2k 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' =>...
0
votes
2answers
445 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 ...
1
vote
2answers
335 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 ...
0
votes
3answers
2k 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" ...
0
votes
1answer
116 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 ...
2
votes
1answer
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 ...
0
votes
1answer
563 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. ...
0
votes
3answers
868 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( $...
1
vote
1answer
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 ...
-1
votes
1answer
327 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 ...
0
votes
1answer
2k 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, ...
2
votes
2answers
2k 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: ...
2
votes
3answers
3k 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 ...