Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
It is possible. You can use the function wp_update_post() to update the post status after submitting a post on the frontend.
Refer to this topic https://support.metabox.io/topic/selecting-post-formats/
June 29, 2021 at 10:01 AM in reply to: How to use Metabox to create custom fields within Menu items #29197Long Nguyen
ModeratorHi Zheng,
Currently, Meta Box does not have an option to add custom fields to menu items. We are developing a feature to support this case.
Keep the plugin up to date, it will be included in future updates.
Long Nguyen
ModeratorHi,
It's the default code to show the related objects and does not support adding more args. You need to use the custom query to set more args. Again, if you want to show 5 jobs from the current employer, please try to use this code
{% set job_args = { post_type: 'job', posts_per_page: 5, relationship: {id: 69, to: post.ID} } %} {% set jobs = mb.get_posts( job_args ) %} {% for job in jobs %} <a href="{{ mb.get_the_permalink( job.ID ) }}">{{ job.post_title }}</a><br> {% endfor %}Just one loop and remove the parent loop that show the 5 employers.
Long Nguyen
ModeratorHi,
Thank you for your feedback.
We've noticed this issue and report it to the development team. They will ship a fix as soon as possible.
Long Nguyen
ModeratorHi ossama,
Thank you for your feedback.
I've escalated this issue to the development team to fix it in the next update.
Long Nguyen
ModeratorHi Paul,
Oxygen is not fully compatible with Meta Box fields. If you want to show the value of the subfields, please try to create a shortcode or a function to show them. Get more details on this documentation https://docs.metabox.io/extensions/meta-box-group/#outputing-group-with-page-builders
Long Nguyen
ModeratorHi,
You can enqueue the Tailwind CSS file when registering the block to load it in both backend and frontend. Get more details on the documentation
https://docs.metabox.io/extensions/mb-blocks/#enqueue_style
https://docs.metabox.io/extensions/mb-blocks/#enqueue_assetsand refer to this topic https://support.metabox.io/topic/tailwindcss/
Long Nguyen
ModeratorHi,
Like this topic https://support.metabox.io/topic/cusrom-table-with-fluent-forms/
If the Groundhogg form has a function to list forms or an action hook after creating a form and a function to get all fields from the form, we can create a custom table with the columns' names corresponding to the fields.
Long Nguyen
ModeratorHi,
Thank you for getting in touch.
You can ask the Fluent Forms support for an action hook after creating a form and function to access all fields of that form so we can create a custom table with the columns' names corresponding to the fields.
June 28, 2021 at 4:31 PM in reply to: ℹ️Feature request: Interpret NULL value in field settings to prevent creation. #29168Long Nguyen
ModeratorHi,
Have you tried to use the
select_treeorcheckbox_treefield type? The radio option is not supported to show trees.
https://docs.metabox.io/custom-select-checkbox-tree/Long Nguyen
ModeratorHi,
The pagination does not work with the custom query. Refer to this topic https://support.metabox.io/topic/show-pagination-for-query/
If you want to limit 5 jobs to display, please add the argument
posts_per_pageto the variablejob_args{% set job_args = { post_type: 'job', posts_per_page: 5, relationship: {id: 69, to: employer.ID} } %}Long Nguyen
ModeratorHi,
In the template of the single post type, you can add this code to show the image of the taxonomy
$terms = get_the_terms( get_queried_object_id(), 'publisher' ); foreach ( $terms as $term ) { $term_image = rwmb_meta( 'publisher_image', ['object_type' => 'term'], $term->term_id ); if( is_array( $term_image ) ) { echo '<img src="'. $term_image['full_url'] .'">'; } }June 28, 2021 at 11:21 AM in reply to: ℹ️Feature request: Interpret NULL value in field settings to prevent creation. #29160Long Nguyen
ModeratorHi,
Thanks for your additional information.
So you can check the condition before register the meta box. Like this
if( $slider_activated == true ) { $meta_boxes[] = [ ... 'fields' => [ [ 'name' => 'Art der Bilddarstellung', 'id' => 'imagepool_type', 'type' => 'radio', 'options' => [ 'global' => 'Wie globale Einstellung', 'single' => 'Ein Einzelbild', 'multiple' => 'Bildreihe', 'slider' => 'Überblendung / Karussell', ], ], ]; ] }Long Nguyen
ModeratorHi,
Can you please clarify that you want to show a list of employers then show recent posts by each employer?
If yes, you can just switch post type
jobtoempand change the relationshipfromtoto{% set args = { post_type: 'emp', posts_per_page: 5 } %} {% set employers = mb.get_posts( args ) %} {% for employer in employers %} <a href="{{ mb.get_the_permalink( employer.ID ) }}">{{ employer.post_title }}</a> {% set job_args = { post_type: 'job', relationship: {id: 69, to: employer.ID} } %} {% set jobs = mb.get_posts( job_args ) %} {% for job in jobs %} <a href="{{ mb.get_the_permalink( job.ID ) }}">{{ job.post_title }}</a> {% endfor %} {% endfor %}and refer to this documentation to know how to use the custom query https://docs.metabox.io/extensions/mb-views/#custom-query
June 27, 2021 at 9:53 PM in reply to: ✅SQL syntax error near '`mbr_order` ASC, mbr_id DESC ASC' #29154Long Nguyen
ModeratorHi,
This issue has been fixed on this commit. Can you please check it and let me know if it works?
-
AuthorPosts