Portfolio on homepage issue

Homepage Community Forums Epik Theme Support Portfolio on homepage issue

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12161
    Batooba
    Customer

      Hello,

      I have the Portfolio on my homepage and I have the exact same issue as Desigirl on April 16th (#11748) meaning:

      The homepage displays fine, but the following pages don’t register any change when I click on “Next Pages”.

      i.e. domain.com – displays as it should

      domain.com/page/2/ – stays the same as domain.com when it should be showing page 2 results
      domain.com/page/3/ – stays the same as domain.com when it should be showing page 3 results
      domain.com/page/4/ – stays the same as domain.com when it should be showing page 4 results
      etc.

      The portfolio works fine when it is not on the homepage.

      Moreover, I’d like to add that I did this change to the page_portfolio.php file as advised by Wes on October 12th (#8091).

      This means: I replaced this code:

      // Clear float using genesis_custom_loop() $loop_counter variable
      // Outputs clearing div after every 4 posts
      // $loop_counter is incremented after this function is run
      add_action( ‘genesis_after_post’, ‘portfolio_after_post’ );
      function portfolio_after_post() {
      global $loop_counter;

      if ( $loop_counter == 3 ) {
      $loop_counter = -1;
      echo ‘<div class=”clear”></div>’;
      }
      }

      by this one

      // Outputs clearing div after every 4 posts
      add_action( ‘genesis_after_entry’, ‘portfolio_after_post’ );
      function portfolio_after_post() {

      global $wp_query;

      // Assumes 4 posts per row
      $end_row = ( $wp_query->current_post + 1 ) / 4;

      if ( ctype_digit( (string) $end_row ) ) {
      echo ‘<div class=”clear”></div>’;
      }
      }

      Can anyone help me with this issue?

      My website is http://www.batooba.com

      Thank you very much in advance,

      Emmanuel

      #12198
      Wes
      Moderator

        I have no idea why that’s happening. I haven’t had this happen to myself, but I do remember someone using a different Genesis theme (by StudioPress) and they ran into the same issue. I just can’t think of what it could be.

        I’ll have to ping another developer here to see if we can get some help with this.

        #12398
        Batooba
        Customer
          This reply has been marked as private.
          #12429
          Wes
          Moderator

            Unfortunately I haven’t heard anything back just yet. I’m sure it’s something small causing the error, I just can’t seem to locate what it could be.

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.