Support Forum ยป User Profile

Forum Replies Created

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • in reply to: โœ…RELATIONSHIP NOT SAVED WITH POST #41914
    RJ LaanRJ Laan
    Participant

    Hi Rik, Filippo,

    I tested version 5.7.1 and that worked for me ๐Ÿ™‚

    Cheers!
    Ruud

    in reply to: โœ…RELATIONSHIP NOT SAVED WITH POST #41900
    RJ LaanRJ Laan
    Participant

    Hi Peter,

    Thanks for reaching out.

    Just so you are aware, when opening a post with existing relations and the latest Metabox version (5.7.0), as a result none of the existing relations will show.
    The user editing the post might not notice this and when saving the post, all the relations for that post are effectively removed from the database.

    I hope the team is able to give this a high priority because this potentially will affect a lot of people.

    Thanks,
    Ruud

    in reply to: โœ…RELATIONSHIP NOT SAVED WITH POST #41894
    RJ LaanRJ Laan
    Participant

    Yes! verified, the previous version (5.6.18) works normally.

    Hope this helps you too.

    Thanks,
    Ruud

    in reply to: โœ…RELATIONSHIP NOT SAVED WITH POST #41892
    RJ LaanRJ Laan
    Participant

    Hi Filippo,

    I quickly tested a setup with 2 connected posts and same deal too, is getting stored in database, but does not show in admin after update and reload.
    I'll test a previous plugin version next.

    in reply to: โœ…RELATIONSHIP NOT SAVED WITH POST #41890
    RJ LaanRJ Laan
    Participant

    Hi Filippo,

    I might have ran into the same issue.

    I created a relationship between users and a custom posttype today and same thing, after selecting a user and updating the post, the edit post page reloads, but the selected user is not showing.

    I examined the database, the data is getting saved, but somehow the code is not picking up the saved value, so the next time around the metabox is unselected again.

    Hope someone from the Metabox team is able to investigate this issue

    Thanks,
    Ruud

    RJ LaanRJ Laan
    Participant

    Hi Long,

    Thanks for the reply and the FAQ is very helpful too!

    If I may comment on the phrasing of the FAQ question (please do not feel offended, just trying to help);
    I believe that "Why is my default value not working?" is a better way of writing the question.

    Thanks,
    Ruud

    RJ LaanRJ Laan
    Participant

    I figured it out myself: the 'std' value won't work if any of the other fields in the same definition have already been saved to the database.
    I know I have read about this but thought it meant that this particular field must not be saved already, which would make total sense since it would then have a saved value already.

    Why can't it work if the field itself has not been saved to the db?

    RJ LaanRJ Laan
    Participant

    Hi all!

    I had a similar problem. In my case I was able to track this down to a conflict with FacetWP.
    To avoid this conflict with FacetWP, you can use this snippet of code

    add_filter( 'facetwp_is_main_query', function( $is_main_query, $query ) {
                    if ( $is_main_query ) {
                        if ( ! empty( $query->query['relationship'] ) ) {
                            $is_main_query = false;
                        }
                    }
    
                    return $is_main_query;
                }, 10, 2 );

    Hope this helps,
    Ruud

    RJ LaanRJ Laan
    Participant

    Hi Long!

    Thanks for sending the information to the development team.
    Ruud

    RJ LaanRJ Laan
    Participant

    Hi Long,

    Thanks for your reply.

    FacetWP: 3.8.1
    MB Relationship: 1.10.5
    Metabox: 5.3.9

    How to reproduce:

    • Create CPT 'word', with taxonomy Genre
    • Add 2x relationship, one for synonyms, one for related words, see pastebin snippet: https://pastebin.com/YPhCAWJ8 (let me know if you have trouble accessing this snippet)
    • Add facet filter on Genre
    • Add page with page template and add WP-Query to get all Words
    • Add facet filter to page template to filter by Genre
    • Use relationships to get related and synonym words for each word

    This in combination should likely have MB relationship and FacetWP touch the query and trigger the parse_query() twice, which then results in the error.

    Let me know if you need anything else.

    Thanks,
    Ruud

Viewing 10 posts - 1 through 10 (of 10 total)