Support Forum ยป User Profile

Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • in reply to: Issue with Relationship not displaying connected posts #43319
    ScottNScottN
    Participant

    Just 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:
    "* Removed split_the_query filter in favor of native WordPress 6.4 behavior"

    in reply to: Issue with Relationship not displaying connected posts #43216
    ScottNScottN
    Participant

    ^^^ I was referring to admin column.

    in reply to: Issue with Relationship not displaying connected posts #43215
    ScottNScottN
    Participant

    OK, 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.

    in reply to: Issue with Relationship not displaying connected posts #43214
    ScottNScottN
    Participant

    OK 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=scott

    After 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 Group

    PS 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)).

    in reply to: Issue with Relationship not displaying connected posts #43190
    ScottNScottN
    Participant

    P.S. it still doesn't explain why the admin columns are empty for the posts relationships though. Just a thought for @Peter.

    in reply to: Issue with Relationship not displaying connected posts #43189
    ScottNScottN
    Participant

    Hi @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?

    in reply to: โœ…Fatal error Meta Box AIO. #39770
    ScottNScottN
    Participant

    Got the Same.
    Applied fix.
    Now working.

    Wen official update?

    Thank you @peter

    โœ…๐Ÿ˜๐Ÿ‘

    ScottNScottN
    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 );
    }
    
    ScottNScottN
    Participant

    Long, 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 );
    }
    
Viewing 9 posts - 1 through 9 (of 9 total)