Forum Replies Created

Viewing 15 replies - 1 through 15 (of 58 total)
  • Thread Starter hwuser

    (@hwuser)

    Sent now another time.

    Thread Starter hwuser

    (@hwuser)

    Sent, thank you!!

    Thread Starter hwuser

    (@hwuser)

    Hi @d0153 This is not a good solution, because this third-party plugin obviously has to use the methods that WordPress offers to obtain posts and custom post types.

    The question is that the worpdress methods, like what I have put before, for example get_posts… I don’t know what filters you use, means that only future ones are obtained, not past ones.

    Is there any way to disable this?

    Furthermore, if I use the get posts method and set the only condition that the custom meta event start date exists, it returns all the events. I find this situation a bit absurd.

    Thread Starter hwuser

    (@hwuser)

    To my previous message, I wanted to add some tests that I have been doing:

    And the plugin modifies the queries that I make or that third parties may make.

    That is, if I have 8 events in my database, 8 posts from the CPT tribe_events, when I have activated your plugin, I have tried two different queries:

    $objects = get_posts(
    			array(
    				'fields'      => 'ids',
    				'post_type'   => 'tribe_events',
    				'post_status' => 'any',
    			)
    		);
    		$query = new WP_Query( array(
    			'post_type'   => 'tribe_events',
    			'post_status' => 'any',
    		) );
    				// Crear instancia de WP_Query
    		$query = new WP_Query( $args );
    		
    		// Obtener los IDs de las publicaciones
    		$objects = $query->posts;

    and I only get future posts.

    If I deactivate your plugin, without doing anything else, these two queries return all the events.

    How can I make sure that with your plugin activated, the queries I make return all the posts?

    Thread Starter hwuser

    (@hwuser)

    Hi @d0153 , I reached out to support regarding the issue, and they indicated that the problem may stem from your plugin. It seems that your plugin might be altering the metadata of the post after it’s been processed. Consequently, when Air WP Sync checks if the event has already been exported, it can’t locate the post, leading to duplication of the event.

    They’re interested in knowing if your plugin modifies any data on the post after the event date has passed. Specifically, does it alter the post ID or any other metadata?

    Thanks!

    Thread Starter hwuser

    (@hwuser)

    Hello, I already told you that I haven’t been able to try it because I don’t have time to do what you tell me. I understand that you who are the authors of the plugin will have to test this.

    Thread Starter hwuser

    (@hwuser)

    Hello!

    Yes, the plugin I use is the following, where I synchronize the CPT events from airtable to wordpress.
    All goes well in future posts.
    But when the days go by, and a post is already past, it is as if it does not detect it, and creates it again, because the past post does not appear in the query…

    https://www.ads-software.com/plugins/air-wp-sync/

    Hello @shingen0810,

    I have used this plugin that creates posts or cpt when you create a record in Airtable (or in a view).
    https://www.ads-software.com/plugins/air-wp-sync/

    At first, I did not create the records in the related tables, but by testing, by incorporating the mentioned fields, they were created.

    That is why I have written it as an idea, for those who use the creation of events from third-party plugins, to try filling out these fields to see if that works for them.

    Thread Starter hwuser

    (@hwuser)

    Sorry, I don’t have much time to do tests.

    I have removed the public, but now it does not recognize the $this->

    It gives me the following error:

    PHP Fatal error: Uncaught Error: Using $this when not in object context?

    I think you should replicate it yourself and put the good code on the website… So I don’t have to do tests…

    Thanks!!

    I also created the Event (CPT tribe_events) from a third-party application (from Airtable), and it did not create the related records in the “tec_events” and “tec_occurrences” tables… So I had the same problem as everyone, which is not I didn’t see the event on the calendar nor did the single events page show me.

    But I found the solution: When I create the event, I fill in the custom fields:
    _EventStartDate
    _EventStartDateUTC
    _EventEndDate
    _EventEndDateUTC
    _EventTimezone

    And now it does create the records in the related tables!!!!

    In any case, comment that the function fails, because it is not only looking to see if it appears as an attendee, it is also looking to see if the attendance, the status, is that I will attend.

    Because if the user later cancels their attendance, it continues to block them from being able to attend again, because even if they have canceled attendance, the function does not distinguish that and thinks that since there is a record, they can no longer request another one.

    This must be the bad function, it should only return if it is registered and if that registered is confirmed, if it is canceled it should not count it:

    count_rsvp_attendees( get_the_ID(), $user );

    Hello, I am also interested in this matter, can you give feedback through this channel as well?

    If a person is signed up for the event, I don’t see the need for the form to appear again with a message in the email box saying that that person is already signed up.

    https://d.pr/i/Ev68pr

    An informative text should appear saying that you are signed up, and a button on which if you click and at most a confirmation button/popup appears, you can remove yourself from this event, but if you need to write your email if you are logged in or without an email being sent to you etc.

    Thanks!!

    Thread Starter hwuser

    (@hwuser)

    Hello Camille,

    I have been able to solve it by adding this line of code in the query, in the conditional if the shortcode has $current_query_markers = true, also add the option that if the CPT have been chosen, it also filters them.

    line 169 includes/public/cttm-shortcode.php
    'post_type' => $post_types,         

    Greetings!

    Thread Starter hwuser

    (@hwuser)

    That doesn’t work for me because the tax_yyy is also shared by the posts and by the cpt_xxx… So even though I put post_types=cpt_xxx and put all the taxonoias tax_yyy it will continue to show me the posts too… What a shame… thank you!

    +1

Viewing 15 replies - 1 through 15 (of 58 total)