WordPress.org

Ready to get started?Download WordPress

Forums

CampTix Event Ticketing
[resolved] Change order of Tickets listed on my page (6 posts)

  1. bufftom
    Member
    Posted 1 year ago #

    Hi, I just installed this and I like how simple and clean it is. I'm wondering if there's a way to change the order that my tickets are listed on my page. I'm assuming they're ordered by an ID number of some kind but I'm not sure where to edit that. I was able to edit the php file to remove the "Remaining" column so I'm in the right area I'm pretty sure. Thanks.

    http://wordpress.org/extend/plugins/camptix/

  2. Konstantin Kovshenin
    Member
    Plugin Author

    Posted 1 year ago #

    Hi there! You should be able to change the order of the tickets by changing their publish date. Also, you should not edit the plugin code to hide stuff, as you will loose your changes when you update. Instead, you can use CSS to hide the remaining column.

    Hope that helps!

  3. bufftom
    Member
    Posted 1 year ago #

    Thanks for your quick response. I've undone my change to the php file as you suggested and I'm not sure which of the camptix css files to edit. I'm new to WP and I'm seeing a lot of plugins that will allow css edits on the "front end". Could you send me in a direction that works for you? Thanks.

  4. Konstantin Kovshenin
    Member
    Plugin Author

    Posted 1 year ago #

    You don't have to edit any of the CampTix CSS files either. You'll need to do Custom CSS outside of the plugin, like with the Jetpack Custom CSS module, or other CSS-editing plugins out there. You'll have to learn a little bit of CSS, but this should get you started:


    .tix-column-remaining { display: none; }

    Hope this helps!

  5. merl
    Member
    Posted 9 months ago #

    I have the same original question that bufftom had - How can you change the order of the tickets query - right now i see that its selecting all posts with post_type tix_ticket , but there doesn't seem to be a way to order it by publish date, it seems it's ordering it by the wp_posts.ID

  6. Ian Dunn
    Member
    Plugin Author

    Posted 9 months ago #

    You can use the pre_get_posts filter to modify the order with a little bit of code. That will get called on all queries, though, so you'll probably want to make sure that the current query you're looking at is searching for the tix_ticket post type.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.