Forum Replies Created
-
AuthorPosts
-
[email protected]
ParticipantSorry, forgot the backticks
that was supposed to read "but as a
<ul><li>items at the top of the page...June 24, 2022 at 10:43 AM in reply to: How to order/sort related posts by title or custom field value? #36655[email protected]
ParticipantIs it possible to add the order parameter to the relationship shortcode e.g. [mb_relationships id="book-to-series" direction="to" mode="ul" order="ASC"]?
What is the default order to the related posts, it doesn't seem to be post publication date or Post Title?
[email protected]
ParticipantKadence is now supporting some Metabox fields. I've had luck using the Kadence Advanced Text Dynamic Link to pick from a dropdown of custom fields including text and checklist. Their new Dynamic List block is also working great to display MB checkbox fields.
I'm having a problem with cloneable textarea fields with the Advanced Text block though the MB WYSIWYG field (including clones) does work.
Radio fields work with the Advanced Text block.
So progress is being made. https://ashevillealexanderte-fse.sitedistrict.com/teacher/shellie-beth-cash/ is an example of MB custom fields to collect the data and Kadence Blocks Pro to display them.
[email protected]
ParticipantPossible workarounds?
I suppose I could use MB Blocks to create a custom block and just drop that into my FSE Template to use instead of a Group of Kadence blocks to display all of my various custom MB fields that are not currently supported by Kadence. You have a nice tutorial for that, but as a non-coder, it looks a bit daunting.
I found that I could use MB Views to create shortcodes that I can use in a standard Shortcode Block to display MB Checkbox values. But with potentially multiple values selected, can you give me a hint how I might introduce a separator character between values but not at the end of the list.
For example I added a comma to this View at the end of line 2
{% for item in post.region %} {{ item.value }}, {% endfor %}But that approach leaves a trailing separator (comma or dash) at the end of the list. For example see the Region and Group values displayed here: https://ashevillealexanderte-fse.sitedistrict.com/teacher/erik-bendix/
Simple text custom fields work fine with Kadence Dynamic Content blocks though so I don't need to do anything except pick the MB custom field from the list for those.
[email protected]
ParticipantKadence seems to be leading the way with their Dynamic Content and Conditional Display settings on their Row Layouts, Sections, and Advanced Text blocks. Metabox custom fields already show up as selectable custom fields for these blocks.
I asked Kadence if they are supporting Metabox.io since I was having problems using MB image fields with Kadence image blocks. They replied they are focusing on ACF to start with and don't know when they will officially support MB π
I wonder if you reach out to Kadence maybe the integration could be accelerated?
March 18, 2021 at 10:32 AM in reply to: β After update to WP 5.7 --custom field changes are not saved after editing a post #26501[email protected]
ParticipantNever mind, it looks like the current version of MB when you choose the Field Group and edit the
Settings and set the Style to Standard and the Tab style is Default it does exactly what I want -- hides the metabox sorting arrows!Problem solved.
[email protected]
ParticipantIn my case the ACF field was a simple Text field. Your suggestion worked like a charm and was much easier than I expected.
Thanks,
Pieter
[email protected]
ParticipantI've taken a project that has a custom field added to Woocommerce products via ACF. I'd like to add additional fields and CPTs using metabox.io but I'd prefer to convert the ACF field (and the contents of that field in 1,800 products) to a comparable metabox.io field. Then I can delete the ACF plugin.
How would you suggest I do this?
September 6, 2020 at 2:54 AM in reply to: Display image captions in Image Advanced on the back end #21678[email protected]
ParticipantThe problem is the client clicks on the pencil to edit the caption field and enters the caption for an image, and then returns to editing the post, but doesnβt see the caption that they just entered. In our case we are only using the caption field and none of the other image fields. The caption field is what is used to display on the front end. So the client can update the post go to the front end and see the caption, and then if they have to adjust it they have to go back and edit the post, edit the image, update the post, go back to front end to verify. And then they have to do that same process for each image in the gallery.
In our case we have an artist collective with over 300 artists each editing their own page with up to 20 images in the gallery for each artist. It would make things so much easier if there were away to display the caption field before clicking the edit button.
September 5, 2020 at 8:22 AM in reply to: β Clients can move the metabox from below content to the sidebar, how to block? #21666[email protected]
Participantthat plugin still works, thanks!
August 21, 2020 at 8:14 AM in reply to: β Clients can move the metabox from below content to the sidebar, how to block? #21373[email protected]
ParticipantWP 5.5 with Gutenberg plugin active
Thanks for your help,
Pieter
[email protected]
ParticipantI have this set up, and in the WYSIWYG editor for the content field I can set a link on some text, but after saving the post the link is removed. What am I missing?
You had me add a custom html field to the Field Group with the following:
<style>#wp-content-editor-tools{background:none;padding-top:0;}</style>'the full code for the Field Group is:
<?php add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' ); function your_prefix_register_meta_boxes( $meta_boxes ) { $prefix = ''; $meta_boxes[] = array ( 'title' => esc_html__( 'Code Snippet Before', 'text-domain' ), 'id' => 'code-snippet-before', 'post_types' => array( 0 => 'code-snippet', ), 'context' => 'after_title', 'priority' => 'high', 'fields' => array( array ( 'id' => $prefix . 'content', 'name' => esc_html__( 'Reason for snippet', 'text-domain' ), 'type' => 'wysiwyg', 'desc' => '###Why did I need to use this? This field is also used as the Excerpt for the post.###', 'class' => 'reason-for-snippet', ), array ( 'id' => $prefix . 'what-it-does', 'name' => esc_html__( 'What It Does', 'text-domain' ), 'type' => 'wysiwyg', ), array ( 'id' => $prefix . 'actual-code-snippet', 'name' => esc_html__( 'Actual Code Snippet', 'text-domain' ), 'type' => 'wysiwyg', 'sanitize_callback' => 'none', ), array ( 'id' => $prefix . 'before-the-snippet', 'type' => 'single_image', 'name' => esc_html__( 'Before the snippet', 'text-domain' ), ), array ( 'id' => $prefix . 'after-the-snippet', 'type' => 'single_image', 'name' => esc_html__( 'After the snippet', 'text-domain' ), ), array ( 'id' => $prefix . 'custom_html_sbvmvz193m', 'type' => 'custom_html', 'std' => '<style>#wp-content-editor-tools{background:none;padding-top:0;}</style>\'', ), ), 'style' => 'seamless', ); return $meta_boxes; }July 21, 2020 at 10:46 AM in reply to: β How can I create a custom post type and use Gutenberg to create/edit the content #20868[email protected]
Participantthanks, don't know what the problem was, I installed Classic Editor, it's working fine now.
[email protected]
ParticipantNow one more step. I actually want to hide the column the image is in if NEITHER the gravatar nor the custom_avatar image is set. If the author has a gravatar and not a custom_avatar then show, if the author has a custom_avatar then show, but if no image is set, hide the column using the Themer conditional logic.
Which trigger do I use and what would the key be if that is required?
Trying to understand the specific case here as well as the generalization so I can use the conditional logic in other places like an author archive page for example.
[email protected]
ParticipantI have a similar problem trying to use BB Conditional Logic to hide a column if the custom avatar is not set (https://metabox.io/create-custom-avatar/?fbclid=IwAR3I1M2s71PFAQgNdhAk5tuAXqhyKU46WP-qJZvOVKBxKBbjdYAAB4vX5u4 )
I'm editing the column where the Post Author Image is placed using Themer, and then setting Conditional Logic for the column to show if:
$prefix . 'custom_avatar'
is set

But even when the custom_avatar is set the column is still hidden.
Any ideas?
-
AuthorPosts