Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Just checking in, any update on this? Here is an example of what I would like to do.

    In the picture below, I would like to change the order of that playlist, and not just limited to the traditional ‘ascending/decending’ option.
    <IMG SRC=”https://firefoxnewsonline.net/images/wordtube01.jpg&#8221; ALT=”WordTube Pic Of Playlist Order”>

    Any assistance on this would be greatly appreciated.
    Respects
    Dave

    Thread Starter pghdave

    (@pghdave)

    Disregard, figured it out.
    The problem was that the script was “copy & paste”ed, & was missing a “}”. Should have read:

    <?php get_sidebar(); ?> <–this needed to be removed

    <?php
    if (is_page(‘5’)) {
    include(TEMPLATEPATH . ‘/sidebar-george.php’);
    } <–this was where it was missing
    elseif ( is_page(‘6’)) {
    include(TEMPLATEPATH . ‘/sidebar-dave.php’);
    } else {
    include(TEMPLATEPATH . ‘/sidebar.php’);
    }
    ?>

    <?php get_footer(); ?>

    In the words of homer simpson…”DOOOH!”
    I was doing the right thing all along.
    I had copied & pasted someone else’s code, but there was a missing “}”.
    Once added, worked like a charm.

    jquintana;

    I still haven’t been able to figure this issue out, be it because I am editing the wrong document, or there is an error in my coding.

    I have changed my page.php to reflect the following:

    <?php
    if (is_page(‘5’)) {
    include(TEMPLATEPATH . ‘/sidebar-george.php’);
    elseif ( is_page(‘6’)) {
    include(TEMPLATEPATH . ‘/sidebar-dave.php’);
    } else {
    include(TEMPLATEPATH . ‘/sidebar.php’);
    }
    ?>

    and I keep getting this error:

    Parse error: syntax error, unexpected T_ELSEIF in (…/wp-content/themes/PRiNZ_BranfordMagazine_latest/branfordmagazine/page.php on line 22

    :-/
    Any assistance is greatly appreciated.
    Respects,
    Dave

    Thread Starter pghdave

    (@pghdave)

    Darya8;

    Thanks for the response, and yes, I could see where that would be useful if there were certain widgets I want on certain pages but not others. However, the problem is I cannot get those certain pages to bring up their appropriate sidebar.

    In this case I want sidebar-dave.php to come up when we click on Dave’s page, and sidebar-george.php to appear when we click on George’s page. Once they they are called up properly, I believe Widget Logic will be a perfect complement to adjusting such.

    I am assuming I either editing the wrong php document, and the script I posted above has some inaccuracies (or both). Any guidance would be greatly appreciated.

    Thanks all & respects,
    Dave

    Quick question:

    Does all this still apply to WP 2.7 as well?

    With the advent of pages disappearing from the file list in the editor (& now appearing as (../wp-admin/page.php?action=edit&post=#), does that mean the “is_” statement is now “is_post(‘#’)”?

    Also, which page do I post the php script above in, the page.php or the sidebar.php? I tried both & it’s not working.

    Basically I have 2 of my pages which are about 2 people specifically, and they want to customize their sidebars (favorite videos, music, facebook link, twitter link, etc). George appears a “../wp-admin/page.php?action=edit&post=5”, & Dave (me) appears as “../wp-admin/page.php?action=edit&post=6”, and I want each to direct to bring up sidebar-george.php & sidebar-dave.php (with everything else bringing up the main/primary sidebar). How would a script look like for something like that in WP 2.7?

    Thanks
    Dave

    I concur. When I pull up the specific playlist I want to address, I see the last column says “order” but next to each item it is listed as “0”. Where do we go to change the order of each individual media file in a particular playlist (aside from ‘ascending & decending’)?

    Thanks
    Dave

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