wordpress help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TommyM
    Confirmed User
    • May 2001
    • 1147

    #1

    wordpress help

    Hey
    I have a theme on my blog, where the blogroll only is on the frontpage, but I want it to show up on all pages, i believe it is this code that insert the links and stuff and tells it only to be on the frontpage, how can I change it so it will appear on all pages


    '<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
    <?php wp_list_bookmarks(); ?>'
  • Antonio
    Too lazy to set a custom title
    • Oct 2001
    • 14136

    #2
    if you're sure that this is the code than change it to:

    Code:
    <?php /* If this is the frontpage */ if ( is_page() ) { ?>
    <?php wp_list_bookmarks(); ?>

    should work but backup your file cuz I'm not 100% sure, try it

    Comment

    • TommyM
      Confirmed User
      • May 2001
      • 1147

      #3
      sorry it isnt that that will only remove it from the mainpage also

      Comment

      • Nookster
        Confirmed IT Professional
        • Nov 2005
        • 3744

        #4
        remove the if statement and just leave <?php wp_list_bookmarks(); ?> unless something else is nested within that statement of course then just remove <?php wp_list_bookmarks(); ?> all together and nest it outside
        Last edited by Nookster; 06-05-2008, 02:18 AM.
        The Best Affiliate Software, Ever.

        Comment

        • Nookster
          Confirmed IT Professional
          • Nov 2005
          • 3744

          #5
          For more info about that particular function http://codex.wordpress.org/Template_...list_bookmarks
          The Best Affiliate Software, Ever.

          Comment

          • TommyM
            Confirmed User
            • May 2001
            • 1147

            #6
            hmm must be more to that code then I think.. cause if i try to delete some or put in other things, I now get a parsing error? and nothing will show up in the menu except for the parsing error

            Comment

            • TommyM
              Confirmed User
              • May 2001
              • 1147

              #7
              15$ on epass to the one who can fix it

              icq me at: 492228036

              Comment

              • TommyM
                Confirmed User
                • May 2001
                • 1147

                #8
                my whole rsidepar.php looks like this

                '
                <div class="rsidebar">
                <ul>
                <?php /* Widgetized sidebar, if you have the plugin installed. */
                if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
                <li>
                <?php include (TEMPLATEPATH . '/searchform.php'); ?>
                </li>
                <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
                <li><h2>Author</h2>
                <p>A little something about you, the author. Nothing lengthy, just an overview.</p>
                </li>
                -->

                <?php if ( is_404() || is_category() || is_day() || is_month() ||
                is_year() || is_search() || is_paged() ) {
                ?> <li>

                <?php /* If this is a 404 page */ if (is_404()) { ?>
                <?php /* If this is a category archive */ } elseif (is_category()) { ?>
                <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>

                <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
                <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
                for the day <?php the_time('l, F jS, Y'); ?>.</p>

                <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
                <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
                for <?php the_time('F, Y'); ?>.</p>

                <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
                <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
                for the year <?php the_time('Y'); ?>.</p>

                <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
                <p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
                for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>

                <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
                <p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives.</p>

                <?php } ?>

                </li> <?php }?>

                <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>

                <li><h2>Archives</h2>
                <ul>
                <?php wp_get_archives('type=monthly'); ?>
                </ul>
                </li>

                <?php wp_list_categories('show_count=1&title_li=<h2>Cate gories</h2>'); ?>

                <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
                <?php wp_list_bookmarks(); ?>

                <li><h2>Meta</h2>
                <ul>
                <?php wp_register(); ?>
                <li><?php wp_loginout(); ?></li>
                <?php wp_meta(); ?>
                </ul>
                </li>
                <?php } ?>

                <?php endif; ?>
                </ul>
                </div>
                '

                Comment

                • Antonio
                  Too lazy to set a custom title
                  • Oct 2001
                  • 14136

                  #9
                  remove this line:
                  <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>

                  and this line (at the end of the file):
                  <?php endif; ?>


                  and try again


                  OR only the first line
                  Last edited by Antonio; 06-05-2008, 04:25 AM.

                  Comment

                  • just a punk
                    So fuckin' bored
                    • Jun 2003
                    • 32393

                    #10
                    <div class="rsidebar">
                    <ul>
                    <?php /* Widgetized sidebar, if you have the plugin installed. */
                    if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
                    <li>
                    <?php include (TEMPLATEPATH . '/searchform.php'); ?>
                    </li>
                    <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
                    <li><h2>Author</h2>
                    <p>A little something about you, the author. Nothing lengthy, just an overview.</p>
                    </li>
                    -->

                    <?php if ( is_404() || is_category() || is_day() || is_month() ||
                    is_year() || is_search() || is_paged() ) {
                    ?> <li>

                    <?php /* If this is a 404 page */ if (is_404()) { ?>
                    <?php /* If this is a category archive */ } elseif (is_category()) { ?>
                    <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>

                    <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
                    <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
                    for the day <?php the_time('l, F jS, Y'); ?>.</p>

                    <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
                    <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
                    for <?php the_time('F, Y'); ?>.</p>

                    <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
                    <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
                    for the year <?php the_time('Y'); ?>.</p>

                    <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
                    <p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
                    for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>

                    <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
                    <p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives.</p>

                    <?php } ?>

                    </li> <?php }?>

                    <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>

                    <li><h2>Archives</h2>
                    <ul>
                    <?php wp_get_archives('type=monthly'); ?>
                    </ul>
                    </li>

                    <?php wp_list_categories('show_count=1&title_li=<h2>Cate gories</h2>'); ?>

                    <li><h2>Blog Roll</h2>
                    <ul>
                    <?php get_links('-1', '<li>', '</li>', '<br />', FALSE, 'id', TRUE, TRUE, -1, TRUE, TRUE); ?>
                    <?php wp_meta(); ?>
                    </ul>
                    </li>

                    <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
                    <?php wp_list_bookmarks(); ?>

                    <li><h2>Meta</h2>
                    <ul>
                    <?php wp_register(); ?>
                    <li><?php wp_loginout(); ?></li>
                    <?php wp_meta(); ?>
                    </ul>
                    </li>
                    <?php } ?>

                    <?php endif; ?>
                    </ul>
                    </div>
                    Obey the Cowgod

                    Comment

                    • just a punk
                      So fuckin' bored
                      • Jun 2003
                      • 32393

                      #11
                      oops, i mean this one:

                      <div class="rsidebar">
                      <ul>
                      <?php /* Widgetized sidebar, if you have the plugin installed. */
                      if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
                      <li>
                      <?php include (TEMPLATEPATH . '/searchform.php'); ?>
                      </li>
                      <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
                      <li><h2>Author</h2>
                      <p>A little something about you, the author. Nothing lengthy, just an overview.</p>
                      </li>
                      -->

                      <?php if ( is_404() || is_category() || is_day() || is_month() ||
                      is_year() || is_search() || is_paged() ) {
                      ?> <li>

                      <?php /* If this is a 404 page */ if (is_404()) { ?>
                      <?php /* If this is a category archive */ } elseif (is_category()) { ?>
                      <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>

                      <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
                      <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
                      for the day <?php the_time('l, F jS, Y'); ?>.</p>

                      <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
                      <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
                      for <?php the_time('F, Y'); ?>.</p>

                      <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
                      <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
                      for the year <?php the_time('Y'); ?>.</p>

                      <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
                      <p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
                      for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>

                      <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
                      <p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives.</p>

                      <?php } ?>

                      </li> <?php }?>

                      <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>

                      <li><h2>Archives</h2>
                      <ul>
                      <?php wp_get_archives('type=monthly'); ?>
                      </ul>
                      </li>

                      <?php wp_list_categories('show_count=1&title_li=<h2>Cate gories</h2>'); ?>

                      <?php wp_list_bookmarks(); ?>

                      <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>

                      <li><h2>Meta</h2>
                      <ul>
                      <?php wp_register(); ?>
                      <li><?php wp_loginout(); ?></li>
                      <?php wp_meta(); ?>
                      </ul>
                      </li>
                      <?php } ?>

                      <?php endif; ?>
                      </ul>
                      </div>
                      Obey the Cowgod

                      Comment

                      • TommyM
                        Confirmed User
                        • May 2001
                        • 1147

                        #12
                        Thanks a bunch, it worked with cyberxxx' method so if you want the 15 bucks hit me up with your epass

                        Comment

                        • just a punk
                          So fuckin' bored
                          • Jun 2003
                          • 32393

                          #13
                          No, thanks. I just wanted to help with something I know.
                          Obey the Cowgod

                          Comment

                          • TommyM
                            Confirmed User
                            • May 2001
                            • 1147

                            #14
                            well thanks a lot then ;)

                            Comment

                            • d-null
                              . . .
                              • Apr 2007
                              • 13724

                              #15
                              thanks for the info cyberxxx

                              __________________

                              Looking for a custom TUBE SCRIPT that supports massive traffic, load balancing, billing support, and h264 encoding? Hit up Konrad!
                              Looking for designs for your websites or custom tubesite design? Hit up Zuzana Designs
                              Check out the #1 WordPress SEO Plugin: CyberSEO Suite

                              Comment

                              Working...