• Resolved dagda99

    (@dagda99)


    So, I am trying to make automations, that after a certain amount of users that commented on the post, won’t allow any new comments, and the same with the votes.

    Now, I don’t know what is wrong, but my filter looks like this:

    Users comments on any post AND User meta {user_meta:user_post_commenting_list} does not contains {10:post_id} AND Flat condition {10:post_meta:post_comment_list_number} is less than 7

    And the actions are:
    Increment post {10:post_id} meta value by 1 for meta key {10:post_meta:post_comment_list_number}

    In order to count 1 more commenter in the metadata of the post

    Insert post {10:post_id} meta value {10:comment_user_id} for meta key {10:post_meta:post_comment_list}

    This ads the user in the list of the post’s commenters, in order to identify them when they comment again, so it doesn’t count one more commenter.

    Insert user meta value {10:post_id} for meta key {user_meta:user_post_commenting_list}

    And this ads the post in a user metadata list.

    Now, they all show up in the log as if “filter passed” and action called, so why doesn’t it actually? The metadata isn’t updated, and I tried with different test users, and I could surpass the limits. Is there anything from the syntax written wrong? Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Contributor Paco González Pérez

    (@pacogon)

    Hi @dagda99!

    I would be more than happy to assist you today.

    The AutomatorWP tags only work in the actions section and not in the triggers section, what happens is that you are putting the tags in the triggers area, that’s why you don’t see the dropdown in the triggers.
    You will have to create this filter in the actions part where it is possible to add tags.

    It does not work because in the update action you are defining the meta key wrong, in the meta key you have to put the name of the meta (for example “meta_name”) and not the AutomatorWP tag.
    Because if you enter the tag is wrong, because what it does is to put the value and not the key.
    Try to change this and it will work.

    Hope it helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Meta filter and actions not working’ is closed to new replies.