Old inFocus theme - Portfolio & Gallery issue

pending (10 posts) (3 voices)

  1. WPn00b
    Member

    In the old version of inFocus, the portfolio shortcode that shipped with it was:

    [portfolio cat=4 style=full max=8] and I need to show multiple categories in one portfolio. The more recent shortcode documentation says put a comma between, but this doesn't work.

    How do I get multiple categories to list and show?

    Posted 2 years ago #
  2. WPn00b
    Member

    Here's an image of how this looks now...

    Posted 2 years ago #
  3. WPn00b
    Member

    retry with smaller image

    Posted 2 years ago #
  4. WPn00b
    Member

    getting frustrated here... 471 Kb CANNOT be too big. OK - perhaps png is the issue - here's a jpg then.

    Posted 2 years ago #
  5. Elliott
    Support

    Hello WPn00b,

    This should be fixed in the latest versions of all themes. What version of inFocus are you using?

    Posted 2 years ago #
  6. WPn00b
    Member

    Version 1.3, and it's been modded somewhat at my employer's insistance.

    Posted 2 years ago #
  7. Webtreats
    Support

    Hi WPn00b,

    Open up the following file you your server:

    lib/includes/template-portfolio-full.php

    And find the following line:

    query_posts("paged=$paged&cat=$portfolio_cat&posts_per_page=$portfolio_max");

    It should be around line # 189

    And replace it with:

    $portfolio_cat = explode( ',' , $portfolio_cat );
    query_posts("paged=$paged&category__and=$portfolio_cat&posts_per_page=$portfolio_max");

    Be sure to back up the original file before you make any changes.

    Let us know if this works.

    Posted 2 years ago #
  8. WPn00b
    Member

    Thanks, will do.

    Posted 2 years ago #
  9. WPn00b
    Member

    Replaced indicated line *[ query_posts("paged=$paged&cat=$portfolio_cat&posts_per_page=$portfolio_max"); ]* in file *lib/includes/template-portfolio-full.php* with two lines shown above
    *[ $portfolio_cat = explode( ',' , $portfolio_cat );
    query_posts("paged=$paged&category__and=$portfolio_cat&posts_per_page=$portfolio_max"); ]*
    and this broke the site. Glad I always backup when monkeying with the php (as suggested above, as well as being good SOP of course!) So that's a non starter.

    Posted 2 years ago #
  10. Webtreats
    Support

    Hi WPn00b,

    Private message me with a WordPress admin login & FTP access to your sever and I'll take a closer look at this for you.

    http://mysitemyway.com/support/pm/new/webtreats

    Posted 2 years ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme