Support

Account

Forum Replies Created

  • Hey, I have a follow up question.
    I will be reuploading all data to my website.
    Can you help me with some SQL to clean, say, all values where a Specific field is associated with a specific post?

    Or even to clean everything to slate (not the fields, just the values).

    Please.

  • @hube2 Can you please tell me if this is the way to use get_posts in order to get all the articles(CPT) where at least one of the IDs in $array_of_video_ids is of a video selected in video_list, which is a multiple values post type acf? I’m quite stuck.
    `
    array(
    ‘key’ => ‘video_list’,
    ‘value’ => $array_of_video_ids,
    ‘compare’ => ‘IN’,
    ),
    `
    If the post type field is single value, I can query it, but wether I’m trying to to match one ID or multiple, if the field allows multiple, I don’t know how to query.
    `
    array(
    ‘key’ => ‘video’,
    ‘value’ => $video -> ID,
    ‘compare’ => ‘IN’,
    ),
    `

    Thank you!!♥

  • +1

    There could be at least a warning to developers that an old custom field with the same key and post ID will show up on front end.

    It seems that flushing by field group should be helpful and feasible. If there is a field group ID than all the data with that ID could be deleted.
    Or any non active…
    One would think that if a value was set to a field key, which is in a non-active field group, it shouldn’t show up in query’s….

    As I am right now, I wouldn’t mind deleting all my custom field values and setting the ones that I need again.
    Anyone knows how to do this? I didn’t want to go messing directly with the DB.

    This plugin is amazing, but this… I just wish I knew about this…

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