runroom

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Past events and P2P connections #844147
    runroom
    Participant

    Hi Josh!
    This is my code in the functions.php file.

    function my_connection_types() {
    p2p_register_connection_type( array(
    ‘name’ => ‘Connectar Agenda amb Blog’,
    ‘post_status’ => ‘publish’,
    ‘from’ => ‘post’,
    ‘to’ => ‘tribe_events’,
    ‘reciprocal’ => true,
    ‘duplicate_connections’ => true
    ) );

    p2p_register_connection_type( array(
    ‘name’ => ‘Connectar Agenda amb Ateneus’,
    ‘from’ => ‘tribe_events’,
    ‘to’ => ‘directori’,
    ‘reciprocal’ => true,
    ) );

    p2p_register_connection_type( array(
    ‘name’ => ‘Connectar programes amb Agenda’,
    ‘from’ => ‘programes’,
    ‘to’ => ‘tribe_events’,
    ‘reciprocal’ => true,
    ) );
    }

    add_action( ‘p2p_init’, ‘my_connection_types’, 100 );

    thanks in advance for your time!

    in reply to: Events sorting on List view #840032
    runroom
    Participant

    Thank you Brian! I’m playing around the “order” and “orderby” parameters, but it doesn’t “totally” works. Maybe is beacause i’m using the FIlter Bar, but it’s kind of weird because suddenly puts the “cost” parameter at the URL when i pass from upcoming to past events.

    FOr example, it works for the upcoming events…but not for the past…
    I understand that you can not give me more support via this Forum, do you have any other way to give me support? or could you help me to find a way? Thanks in advance.

    in reply to: Past events and P2P connections #839948
    runroom
    Participant

    Hello, thanks for the response!
    The selected post only dissapears in the events in the admin, but the related events appears in the front end. weird!

    Thanks in advance.

    in reply to: Events sorting on List view #832480
    runroom
    Participant

    Thank you Brian!
    I will need to do it in the front end, i made a custom theme to show my events (based on your original theme with the skeleton option active)

    Thank you in advance.

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