• Resolved xmacvicar

    (@xmacvicar)


    You can see on the homepage, my list of events shows 2 matches.

    One shows the full path of venue: Club CDL, Court 1

    The other, does not: it only shows Court 2

    Why would this be? All the courts are children underneath the main venue “Club CDL”

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Roch

    (@rochesterj)

    Hi there!

    Thanks for reaching out, and I’m sorry for the delay.

    I can see that you have all titles as Club CDL now, did you manage to fix this?

    Thanks!

    Thread Starter xmacvicar

    (@xmacvicar)

    Hey there. I did not solve it. I did a workaround by having to include club CDL in every single child name. Basically the venue structure would be

    Club Name
    -court 1
    -court 2
    -court 3

    Etc. but I have to set it up as

    Club Name
    -club name court 1
    -club name court 2
    -club name court 3

    Roch

    (@rochesterj)

    Hi there!

    Thanks for your reply.

    That’s odd. I don’t see a function in the event list shortcode to load parent-child. Was it working for the first one? Or did you have the name as club name court 1 all the time?

    Thanks!

    Thread Starter xmacvicar

    (@xmacvicar)

    Yea it worked for the first one but not any subsequent ones

    Roch

    (@rochesterj)

    Weird. Did you change it now so it won’t appear as Club Name – club name court 1?

    Can you send me some screenshots of your setup when it was working for the first item?

    I’m trying to reproduce this with parent/child venues but it just loads the child venue name.

    Thanks!

    Thread Starter xmacvicar

    (@xmacvicar)

    Updated: https://davidm517.sg-host.com

    Weird… it now just shows “court 1” or “court 2”, etc.

    At one point last week for the events table it was showing the venue like this:

    “Club CDL – Court 1”
    “Court 2”

    Roch

    (@rochesterj)

    Hi there!

    Thanks for your reply.

    That’s really weird indeed.

    In our code, the only thing we have is:
    echo wp_kses_post( implode( ', ', wp_list_pluck( $venues, 'name' ) ) );

    This basically means display all venue names (for the venues assigned to this event, in your case 1) separated by a comma.

    Maybe you had at some point different titles, or maybe it was some sort of odd caching. At least as far as I can see, we have nothing in the code to load the parent venue title.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Issue with venues display’ is closed to new replies.