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…
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_'.…
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…
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…
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…
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…
I am unable to create custom fields through WooCommerce Hooks as shown
function woocommerce_product_custom_fields()
{
global $woocommerce, $post;
echo '
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…
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…
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:
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…
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…
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:
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…
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 '