Problem with how posts appear on Portfolio parent page

resolved (7 posts) (2 voices)

  1. jmarkj
    Member

    I've set up a Portfolio page and parent menu component that has a number of submenu components (Web Development, Online Advertising, etc.) and everything has been working fine until I wanted to fill out the main Portfolio page with its own gallery of images. The program seems to fill the Portfolio page with posts from any Portfolio sub-menu category, even if I uncheck "Portfolio" from the choices and just leave the appropriate subcategory checked. Is this by design? In other words, is the main Portfolio page going to show any post that has a category selected from the Portfolio submenus, even if the main "Portfolio" is not checked? I want to use a separate image and link to the submenu category pages from the main Portfolio page that basically performs like when a user selects the particular submenu item from the menu itself. The site is at:

    http://www.lonestarproductions.com

    Go to the menu and select Portfolio>Web Development. That page comes up fine, with a list of web projects. Now, if you select the main "Portfolio" link from the top menu, it tries to display all the posts that belong to any submenu category for Portfolio. However, I have deselected "Portfolio" from the post categories, and left the sub-category items (Web Development, Online Advertising, etc.) checked where appropriate. Is there any way to keep these posts from loading into the main Portfolio gallery page?

    Posted 1 year ago #
  2. Elliott
    Support

    Hello jmarkj,

    The portfolio shortcode will grab posts from a certain category. If you wish to create different portfolios then you can create a category for each.

    For example you could have a category for your web design and another category for your online advertising pages. If you want to keep those categories out of your main portfolio page then you can try creating a separate category for that page.

    Let us know if this is what you are trying to do.

    Posted 1 year ago #
  3. jmarkj
    Member

    Hi Elliott,

    I have already created categories for Web Development, Online Advertising and others that are treated as sub-categories to Portfolio, so that they correctly nest as child menus under Portfolio on the main navigation bar. What seems to be happening on the main portfolio page is that the shortcode ("4", in this case for Portfolio) is pulling in anything that is a sub-category under "4". I'm wondering if this is by design and unavoidable. I need to display a separate image that is from a post that ONLY has "Portfolio", listed as its category, not any of the subcategories under Portfolio, like Web Development, Online Advertising, etc. Not sure how clear or not this is coming across.

    Posted 1 year ago #
  4. Elliott
    Support

    The easiest way (if you do not want them to run into eachother) would be to just create different categories for each one. If you do not want them to display in the main navigation then you can use the wordpress menus feature to customize your menus. See here for enabling it with inFocus, http://mysitemyway.com/support/topic/wordpress-v3-menus

    We can try this though,

    Open up /wp-content/themes/infocus/lib/includes/template-portfolio-gallery.php and on line 187 you should see this,

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

    Change it like this,

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

    Though I am not sure if it will work for you or not jmarkj. I'll do some more research on it.

    Posted 1 year ago #
  5. jmarkj
    Member

    I'm not sure (and bear with me, I'm not trying to be rude by any means) but it seems like I'm not making this clear. I DO want the posts and associated images to display in "the main navigation" just like they are right now. The menu bar and child menus behave just fine. When I mouse-over "Portfolio" in the menu bar, the child menus appear and I can go to each child menu link (Web Development, etc) and see the posts there correctly. What I DON'T want to happen is if I select the main "Portfolio" parent link, I don't want ALL of the posts (those allocated to Web Development, Online Advertising, Document Services, and all the child subcategories) to appear on the main Portfolio page like they currently are, even though I've deselected "Portfolio" on those posts and just left their specific subcategory (say, Web Development) selected.

    Posted 1 year ago #
  6. Elliott
    Support

    Sorry for misunderstanding you jmarkj, if possible can you PM us Wordpress login details so we take a look at how your pages are setup?

    Posted 1 year ago #
  7. Elliott
    Support

    Alrighty, to other customers who are using threaded categories for the portfolio try this,

    Open up /wp-content/themes/infocus/lib/includes/template-portfolio-gallery.php and on line 187 you should see this,

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

    Change it like this,

    query_posts(array("category__in" => array($portfolio_cat), "paged" => $paged, "posts_per_page" => $portfolio_max));

    What this will do is exclude child categories from displaying in your portfolio.

    Posted 1 year 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