• Resolved Gerdski

    (@gerdski)


    Hello,

    I have tried to make a Timeline Plugin work together with GigPress, because I wanted my past music dates to show in a vertical timeline.
    After searching in sourcecodes for a while I discovered that my unability to do this was due to the fact that GigPress uses its own database tables instead of (what I expected) posts in a custom post type.

    So, I think I should change the default WordPress query for THE LOOP of the Timeline plugin to another query designed for GigPress.

    This here:

    <?php while ( have_posts() ) : the_post(); ?>
    <!– Do stuff… –>
    <?php endwhile; ?>

    should maybe be changed to something like this:

    <?php query_posts( ‘category_name=special_cat&posts_per_page=10’ ); ?>

    <?php while ( have_posts() ) : the_post(); ?>
    <!– Do stuff… –>

    where query_posts should query GigPress posts/entries instead of default WP posts.

    Can you show me some code that does this?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Barry

    (@barryhughes-1)

    Hi @gerdski,

    Stoked to see you’re building something cool ??

    I’m afraid we’re unable to go into any depth with custom coding questions, but if you take a look at the gigpress_show() function you can see how GigPress itself queries for shows and you can probably extract what you need from there.

    Good luck with the project!

    Thread Starter Gerdski

    (@gerdski)

    Hi,
    thanks for your answer.

    The gigpress_show() is fine…i can see the plain SQL ( well, almost ?? ) that gets the results. Let’s see if I can somehow manage to call this function from “outside”…if yes: fine. If no: I’ll just copy it into the timeline plugin.

    Yeah, combinations of plugins can be cool. Like Google Maps combined with Custom Post Types (Members, Places, …).

    Thanks,
    Gerd

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘GigPress and other Plugins’ is closed to new replies.