Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
You can follow these articles to use the same slug for CPT and custom taxonomy with custom code.
https://react2wp.com/using-same-slug-for-custom-post-type-and-custom-taxonomy/
https://www.ibenic.com/custom-wordpress-rewrite-rule-combine-taxonomy-post-type/February 8, 2022 at 9:53 PM in reply to: Twig condition for select field doubles value in Views #33766Long Nguyen
ModeratorHi,
That means the user field
status_wnioskuhas two values and both haveanulowany. You can try to print the item to check its value.{% set value = 'anulowany' %} {% for item in user.status_wniosku %} {{ item }} {% if value in item %} <div class="status-anulowany">Anulowany</div> {% endif %} {% endfor %}Long Nguyen
ModeratorHi,
You can set the array of values as the default value of the text_list field. For example:
[ 'id' => 'text_list', 'name' => 'Text List', 'type' => 'text_list', 'clone' => true, 'options' => [ 'John Smith' => 'Name', '[email protected]' => 'Email', ], 'std' => [ 'Long Nguyen', '[email protected]' ] ]Long Nguyen
ModeratorHi,
Thanks for your feedback.
The API
create()of the custom table has to run on page load to check if the table exists or not. If you do not want to run the query anytime, you can create a table with coding and run it one time, then comment out or delete the code that creates the table.Refer to this documentation https://docs.metabox.io/extensions/mb-custom-table/#creating-custom-tables
February 8, 2022 at 4:25 PM in reply to: Custom post type keeps redirecting me to homepage (301) #33736Long Nguyen
ModeratorHi,
There is no issue on my site when activating WooCommerce and creating a new post type
marka. I think there is another issue with redirection on your site. Please try again with a fresh install and let me know if it works.Long Nguyen
ModeratorHi,
If you want to save all HTML tags in the
textareafield, please follow this documentation to bypass sanitization https://docs.metabox.io/sanitization/Long Nguyen
ModeratorHi,
It is impossible to exclude the chosen option, I'm going to create a feature request to support this case. Thanks for your idea.
Long Nguyen
ModeratorHi,
If you use the Builder, please follow this documentation to generate PHP code https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code
then paste the code here or use Pastebin https://pastebin.com/ and share the link.
Long Nguyen
ModeratorHi,
You can use the field setting
disabledand set it totrueto disable a field. Read more on the documentation https://docs.metabox.io/field-settings/#field-specific-settings[ 'name' => __( 'Text', 'your-text-domain' ), 'id' => $prefix . 'text_c2x12ryc1qu', 'type' => 'text', 'disabled' => true, ],February 7, 2022 at 8:41 PM in reply to: Select Advanced field in a post type to select other post type #33715Long Nguyen
ModeratorHi,
In case of using Oxygen Builder, please reach out to them if you have any issues with installation, configuration, compatibility, or usage.
Refer to our support policy https://support.metabox.io/topic/support-policy/Long Nguyen
ModeratorHi Gunther,
Can you please share the code that creates the fields and conditional logic on your site? As you can see on the screen record above, it works as well on my demo site.
https://imgur.com/G4lFxi1Long Nguyen
ModeratorHi Cees,
Can you please share the code that creates the settings page and custom fields on your site?
Long Nguyen
ModeratorHi,
Thanks for your feedback.
The extension MB Revision is not working with MB Frontend Submission. I'm going to inform the developer team to consider supporting this in future updates.
Long Nguyen
ModeratorHi Kirb,
Meta Box does not support swapping field values like that. You need to create custom JavaScript code to do that.
Long Nguyen
ModeratorHi Kirb,
Do you mean to get the submitted data from the frontend form and display them on the frontend dashboard?
-
AuthorPosts