Title: AndresHolmes's Replies | WordPress.org

---

# AndresHolmes

  [  ](https://wordpress.org/support/users/andresholmes/)

 *   [Profile](https://wordpress.org/support/users/andresholmes/)
 *   [Topics Started](https://wordpress.org/support/users/andresholmes/topics/)
 *   [Replies Created](https://wordpress.org/support/users/andresholmes/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/andresholmes/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/andresholmes/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/andresholmes/engagements/)
 *   [Favorites](https://wordpress.org/support/users/andresholmes/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Tabs Shortcodes] Set active tab](https://wordpress.org/support/topic/set-active-tab/)
 *  Thread Starter [AndresHolmes](https://wordpress.org/support/users/andresholmes/)
 * (@andresholmes)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/set-active-tab/#post-5633755)
 * Wow, that was quick! Thank you so much!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Tabs Shortcodes] Set active tab](https://wordpress.org/support/topic/set-active-tab/)
 *  Thread Starter [AndresHolmes](https://wordpress.org/support/users/andresholmes/)
 * (@andresholmes)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/set-active-tab/#post-5633752)
 * Ok, thank you for considering that 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Tabs Shortcodes] Set active tab](https://wordpress.org/support/topic/set-active-tab/)
 *  Thread Starter [AndresHolmes](https://wordpress.org/support/users/andresholmes/)
 * (@andresholmes)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/set-active-tab/#post-5633750)
 * I know that. But as far as i know, you cannot add that “#tab-3” to a “default”
   link of an arcticle.
    When you have a loop of articles on main page, the link
   is always “[http://domain.com/your-page/&#8221](http://domain.com/your-page/&#8221);,“
   [http://domain.com/your-page2/&#8221](http://domain.com/your-page2/&#8221); and
   so on…So the first tab always loads up. You have no way of choosing the landing
   tab. This thing you mentioned is usable moreover only externally.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [setting fifth post as first on index.php](https://wordpress.org/support/topic/setting-fifth-post-as-first-on-indexphp/)
 *  Thread Starter [AndresHolmes](https://wordpress.org/support/users/andresholmes/)
 * (@andresholmes)
 * [15 years ago](https://wordpress.org/support/topic/setting-fifth-post-as-first-on-indexphp/page/2/#post-2148653)
 * one last thing – everytime I make a post sticky, number of displayed post on 
   the first page increases…
 * I added a special div with featured post with this code
 *     ```
       <?php
       $my_page = (get_query_var('paged')) ? get_query_var('paged') : 1;
       if (is_front_page() && $my_page == 1) {?>
       <div id="featured">
         <?php
         $loop = new WP_Query( array(
           'showposts' => 2,
           'post__in'  => get_option('sticky_posts'),
           'caller_get_posts' => 1 ) );
         while ( $loop->have_posts() ) : $loop->the_post(); ?>
           <div>
             <h2><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
             <div class="entry-summary">
               <?php the_excerpt(); ?>
             </div>
           </div>
         <?php endwhile; ?>
       </div>
       <?php } ?>
       ```
   
 * now if i mark one post as sticky i get a slider with posts #1234, a div with 
   a sticky post, and a list of post #45678910 – post #4 is there twice
 * now if i mark two posts as sticky i get a slider with posts #1234, a div with
   two sticky posts, and a list of post #345678910 – posts #3 and #4 are there twice
 * i figured, that if i keep always only 2 posts marked as sticky and change
 *     ```
       <?php if (have_posts()) : while (have_posts()) : the_post();
          if (is_front_page() && $my_page == 1 && ++$my_post_count < 5) continue;
       ?>
       ```
   
 * to
 *     ```
       <?php if (have_posts()) : while (have_posts()) : the_post();
          if (is_front_page() && $my_page == 1 && ++$my_post_count < 7) continue;
       ?>
       ```
   
 * i get the appearence i want, but isn’t there a prettier way, so that i woudn’t
   have to unstick a post, when i stick new one?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [setting fifth post as first on index.php](https://wordpress.org/support/topic/setting-fifth-post-as-first-on-indexphp/)
 *  Thread Starter [AndresHolmes](https://wordpress.org/support/users/andresholmes/)
 * (@andresholmes)
 * [15 years ago](https://wordpress.org/support/topic/setting-fifth-post-as-first-on-indexphp/page/2/#post-2148633)
 * Thank You very much! It works perfectly!
 * Only the slider was displaying in the tag results, so I changed slider’s `($my_page
   == 1)` to `(is_front_page() && $my_page == 1)` as well and now it’s flawless.
 * I couldn’t express my graditude. I spent days worrying about this…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [setting fifth post as first on index.php](https://wordpress.org/support/topic/setting-fifth-post-as-first-on-indexphp/)
 *  Thread Starter [AndresHolmes](https://wordpress.org/support/users/andresholmes/)
 * (@andresholmes)
 * [15 years ago](https://wordpress.org/support/topic/setting-fifth-post-as-first-on-indexphp/#post-2148631)
 * Heh, it’s working now! Thanks very much!
 * only the tags are still broken.
 * when i try f.e. [http://www.example.com/tag/video/](http://www.example.com/tag/video/)
   
   and no post on the first page is tagged with video, i get a blank page – there’s
   not even the message like “sorry, but you’re searching something that is not 
   here”, that i get if the tag was not used at all..
 * can i make something like tag.php, like what you can do with categories?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [setting fifth post as first on index.php](https://wordpress.org/support/topic/setting-fifth-post-as-first-on-indexphp/)
 *  Thread Starter [AndresHolmes](https://wordpress.org/support/users/andresholmes/)
 * (@andresholmes)
 * [15 years ago](https://wordpress.org/support/topic/setting-fifth-post-as-first-on-indexphp/#post-2148620)
 * yes, the slider is fine…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [setting fifth post as first on index.php](https://wordpress.org/support/topic/setting-fifth-post-as-first-on-indexphp/)
 *  Thread Starter [AndresHolmes](https://wordpress.org/support/users/andresholmes/)
 * (@andresholmes)
 * [15 years ago](https://wordpress.org/support/topic/setting-fifth-post-as-first-on-indexphp/#post-2148618)
 * same problem…
    seems $post_count and $my_post_count are working too, they just
   work somehow for the whole index and not only for the first page of the index…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [setting fifth post as first on index.php](https://wordpress.org/support/topic/setting-fifth-post-as-first-on-indexphp/)
 *  Thread Starter [AndresHolmes](https://wordpress.org/support/users/andresholmes/)
 * (@andresholmes)
 * [15 years ago](https://wordpress.org/support/topic/setting-fifth-post-as-first-on-indexphp/#post-2148614)
 * Also tags were not working properly with that line. When I tried to display posts
   with tag, that was used in a post, that was not on the first page, I got an empty
   page.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [setting fifth post as first on index.php](https://wordpress.org/support/topic/setting-fifth-post-as-first-on-indexphp/)
 *  Thread Starter [AndresHolmes](https://wordpress.org/support/users/andresholmes/)
 * (@andresholmes)
 * [15 years ago](https://wordpress.org/support/topic/setting-fifth-post-as-first-on-indexphp/#post-2148613)
 * 10 posts on every site….
    so on the first page is slider(posts ##1234] and first
   10 posts (##12345678910), second page is working…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [setting fifth post as first on index.php](https://wordpress.org/support/topic/setting-fifth-post-as-first-on-indexphp/)
 *  Thread Starter [AndresHolmes](https://wordpress.org/support/users/andresholmes/)
 * (@andresholmes)
 * [15 years ago](https://wordpress.org/support/topic/setting-fifth-post-as-first-on-indexphp/#post-2148610)
 * thanks for your help!
 * the first page seems allright now, but i’m getting the second page blank – no
   posts, only navigation buttons in the content
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [setting fifth post as first on index.php](https://wordpress.org/support/topic/setting-fifth-post-as-first-on-indexphp/)
 *  Thread Starter [AndresHolmes](https://wordpress.org/support/users/andresholmes/)
 * (@andresholmes)
 * [15 years ago](https://wordpress.org/support/topic/setting-fifth-post-as-first-on-indexphp/#post-2148605)
 * i tried something with query-post, but using offset always breaks my pagination…
   i know it’s a known issue of wordpress, so i tried to implement some solutions
   i googled, but i’m obviously doing something wrong, because i can’t dela with
   the broken pagination…
 * can somebody please help me implement offset=5, showpost=6 for the first page
   for my theme?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [display text only when custom field is filled](https://wordpress.org/support/topic/display-text-only-when-custom-field-is-filled/)
 *  Thread Starter [AndresHolmes](https://wordpress.org/support/users/andresholmes/)
 * (@andresholmes)
 * [15 years ago](https://wordpress.org/support/topic/display-text-only-when-custom-field-is-filled/#post-2148581)
 * it’s working, thanks very much
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [setting fifth post as first on index.php](https://wordpress.org/support/topic/setting-fifth-post-as-first-on-indexphp/)
 *  Thread Starter [AndresHolmes](https://wordpress.org/support/users/andresholmes/)
 * (@andresholmes)
 * [15 years ago](https://wordpress.org/support/topic/setting-fifth-post-as-first-on-indexphp/#post-2148579)
 * ok, [here’s my index.php](http://pastebin.com/qBaQDE67)
    i’m glad for any help

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