Forum Replies Created
-
AuthorPosts
-
September 22, 2023 at 4:53 AM in reply to: Issue with Relationship not displaying connected posts #43319
ScottN
ParticipantJust a note to everyone one using Cloudways.
Even if you've updated Meta Box AIO to the newest version 1.23.0, which does have those file changes, this still doesn't work UNTIL Cloudways updates the MU-PLUGIN Object Cache Pro from 1.19.0 to 1.20.0.
In Object Cache Pro's CHANGELOG:
"* Removedsplit_the_queryfilter in favor of native WordPress 6.4 behavior"September 12, 2023 at 7:16 AM in reply to: Issue with Relationship not displaying connected posts #43216ScottN
Participant^^^ I was referring to admin column.
September 12, 2023 at 7:13 AM in reply to: Issue with Relationship not displaying connected posts #43215ScottN
ParticipantOK, I just tested this on Meta Box AIO Version 1.22.0 (which is an older version) and Bricks 1.8.6 (also older version) and it still does the same thing:
Relationship does not show in admin bar or front-end when Object Cache is enabled. When Object Cache is disabled, Relationship shows in admin bar and front-end.September 12, 2023 at 4:58 AM in reply to: Issue with Relationship not displaying connected posts #43214ScottN
ParticipantOK I can give my latest for this issue:
I am also in the Bricks forum issue for this here:
https://forum.bricksbuilder.io/t/no-bug-metabox-relationship-queries-stopped-working-in-bricks/15197/19?u=scottAfter simply disabling Object Cache plugin (required by Cloudways.com), Meta Box Relationships immediately show up again 1. in the admin-column, the relationship members show up there and 2. on the front-end where they are supposed to be. It displays as intended.
@Peter and team, does anyone have the ability to install the Object Cache plugin to see this fail?
Plugin causing an issue of far:Object Cache Pro (MU)
Description: A business class Redis object cache backend for WordPress.
Version: Version 1.19.0
By: Rhubarb GroupPS just FYI, this plugin is a Cloudways.com requirement as they put it in our MU plugin classification, so we can't get around using it.
As it stands my (all of our) relationships are broken until this gets resolved (for those of us using Object Cache Pro (MU)).
September 9, 2023 at 8:41 AM in reply to: Issue with Relationship not displaying connected posts #43190ScottN
ParticipantP.S. it still doesn't explain why the admin columns are empty for the posts relationships though. Just a thought for @Peter.
September 9, 2023 at 8:38 AM in reply to: Issue with Relationship not displaying connected posts #43189ScottN
ParticipantHi @Johnny and @Peter. I can confirm this issue. I too have a relationship setup (but I have mine set as reciprocal) to link posts just like you do Johnny and I have the same issues:
1. Relationships have disappeared off the frontend, they stopped working.
2. The admin column for related items is there... but empty. The items are not listed.
3. The items are still perfectly fine in each of the Meta box areas for the posts.
4. I too have Bricks Builder, the latest issue v1.9.However... @Johnny the relationship shows up just fine in the editor when I am EDITING the Bricks template that displays the relationship.
@Johnny set your template to display that exact post when editing the template:
In your template go to > Settings Gear > Template Settings > Populate Content > Content Type: Single post/page > Single post/page: [what-ever-post-contains-an-example-relationship].One the screen reloads, if it shows correctly for you in the editor, but not on the front-end, this might be a Bricks Builder issue.
This is as far as I've gotten on this issue.
What do you need from me to help with this?
ScottN
ParticipantOctober 8, 2022 at 5:33 AM in reply to: โ Change Title to Custom field using "rwmb__before_save_post" action. #38591ScottN
Participant@Long, here is my finished code for above^. Is it post_name I need to update?:
<?php add_action( 'rwmb_distributor-details_after_save_post', 'update_post_slug' ); function update_post_slug( $post_id ) { // Get the street_address field value $dist_address = rwmb_meta( 'street_address', '', $post_id ); // Get the locality field value $dist_city = rwmb_meta( 'locality', '', $post_id ); // Get the administrative_area_level_1 field value $dist_state = rwmb_meta( 'administrative_area_level_1', '', $post_id ); // Get the post title $dist_post_title = get_the_title( $post_id ); // Preprare update post slug (post_name) $my_post = array( 'ID' => $post_id, 'post_name' => $dist_post_title . '-' . $dist_address . '-' . $dist_city . '-' . $dist_state, ); wp_update_post( $my_post ); }October 8, 2022 at 4:17 AM in reply to: โ Change Title to Custom field using "rwmb__before_save_post" action. #38590ScottN
ParticipantLong, Hope you are well.
Suppose I wanted to customize the slug on save (from frontend submission form) in this same way, what would I place here (would it be post_slug)?:
(from your code above in this thread):
add_action( 'rwmb_monitor_after_save_post', 'update_post_title' ); function update_post_title( $post_id ) { // Get the field value $my_meta = rwmb_meta( 'monitor_number', '', $post_id ); // Get the post title //$my_post_title = get_the_title( $post_id ); NOT NEEDED - I'M OVERWRITING THE TITLE // Preprare update post $my_post = array( 'ID' => $post_id, 'post_slug' => $my_meta, ); wp_update_post( $my_post ); } -
AuthorPosts