Questions tagged [custom-fields]

WordPress custom fields: author-entered post metadata

Related links

WordPress Documentation: Custom fields

1518 questions
-1
votes
1 answer

How to create customs fields in a CPT without any plugin?

What's my goal with this question I'm currently building a custom plugin for a WordPress website. When my plugin is activating, it's creating a new Custom Post Type that has default input fields for the moment. I want this new Custom Post Type to…
-1
votes
2 answers

Show a image user field on the Author page with ACF/advanced custom fields

I want to show a custom Avatar image field on the author page. The following code is working for me, but shows as can be guesses the field of the current user. It should show the avatar field of the specific author. the_field('avatar', 'user_'.…
-1
votes
1 answer

How to load page completely before proceeding with Javascript?

Sorry if the title is a bit tricky to understand. Allow me to elaborate. On my Wordpress website, I recently started using the extension Custom Field Suite, in order to be able to create custom fields. It allows me to retrieve those afterwards in…
almecin
  • 41
  • 5
-1
votes
2 answers

Wordpress removing

tags from WYSIWG custom field on custom post types

I'm using Metabox to create a custom post type "services" and some custom fields where I can add content. One field is a "What you see is what you get" field (WYSIWYG) but Wordpress removes the p tags automatically. I've managed to sort this issue…
-1
votes
3 answers

How to hide some Custom Fields from Woocommerce Admin order page

When logged in as an admin and looking at an Order in Woocommerce, there's a section with all the Custom Fields. Out of the whole list I only want it to display two of them. How do I hide the rest from this view? I don't want to delete them, but…
-1
votes
1 answer

How to add a custom nickname field on WooCommerce My Account's edit page

I have customized the myaccount/form-edit-account.php WooCommerce template file. So that a customer in addition to the default fields first name, last name, display name, email and password. Now also has the option to add/edit his nickname. Once…
-1
votes
1 answer

WooCommerce disabled custom field addition to their free plugin?

I am unable to create custom fields through WooCommerce Hooks as shown function woocommerce_product_custom_fields() { global $woocommerce, $post; echo '
'; woocommerce_wp_text_input( array( …
Lenin
  • 570
  • 16
  • 36
-1
votes
1 answer

Woocommerce - I need to display the price of one unit ($7) at the store and product page, but charge the real value of the product (100 pcs)

At my online store, one of my suppliers offers me packs of 100 pieces of a product, however my competition displays the UNIT price of the product (lower than mine, since I have 100 pcs in the product). I need to display the unit price as well, but…
Edgar E.
  • 25
  • 2
  • 9
-1
votes
1 answer

TYPO3 v10 How do i get an object's crdate or the tstamp in FrontEnd

I am using TYPO3 v10 and i have built an extension. In some parts of the FrontEnd i need to get the crdate or the tstamp. TYPO3 does not have getters and setters to use in order to retrieve them. Before TYPO3 v10 you could do something like…
Aristeidis Karavas
  • 1,891
  • 10
  • 29
-1
votes
1 answer

How do I insert a custom field value into a Wordpress dynamic_sidebar

To show a sidebar in a Wordpress theme you do this: But I am trying to insert a value from a custom field where the sidebar name is so I have this solution which does not work:
vectyr
  • 13
  • 7
-1
votes
1 answer

WordPress: Running Multiple Arrays in functions.php to add custom fields

I'm trying to add custom fields to my WooCommerce checkout scheme (although this could be a situation with custom fields anywhere). I want to add two, but each attempt I've tried to run a function, it only adds the first custom field and not the…
Adam Bell
  • 1,049
  • 1
  • 16
  • 50
-1
votes
1 answer

Show Custom Field "Handleby" on Custom Column in WooCommerce Orders Page?

I'm trying to show a custom field added to all orders made from the website's front-end called "Handleby" with the value "frontend" via a custom column on the admin's orders page. I was able to create a custom column, but couldn't populate it with…
Wallace L.
  • 41
  • 1
  • 10
-1
votes
1 answer

get_post_meta for inline CSS

I have a custom field with name and value (case sensitive) as follows: style; rgb(240,180,41) The code to retrieve this is included within the loop on my single.php file:

Chris L
  • 109
  • 8

-1
votes
1 answer

Use checkbox to save and read multiple values in Wordpress

I am trying to create a checkbox that saves multiple values like those below, i am working on a costum field for wordpress users. The problem is that I can only save the last checked box if i check any box above that one, it won't work. I want to be…
-1
votes
1 answer

WooCommerce state custom checkout field not working

I have used following code to add custom state field to WooCommerce checkout field add_action( 'woocommerce_after_order_notes', 'some_custom_checkout_field' ); function some_custom_checkout_field( $checkout ){ echo '
Shravan Sharma
  • 989
  • 8
  • 17
1 2 3
99
100