Jump to content


resolved

Query Exchange Category & Image For Builder Extension



8 replies to this topic

#1 Doug LaMunyon

Doug LaMunyon

    Advanced Member

  • Members
  • Others: Toolkit
  • PipPipPip
  • 202 posts
  • LocationCortez, Colorado

Posted 16 May 2014 - 12:29 PM

I'm trying to display links to a product category using the Portfolio Extension.
http://twinravenz.dmlwsdev.com/products/navajo-rugs-for-sale/

I can get the layout to display all Exchange products using this query in the extension functions.php file:
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("it_exchange_category&tag_ID=7&post_type=it_exchange_prod&paged=$paged"); ?>

I have tried different combinations of the query but keep hitting a brick wall. Also, the product image is not appearing.

Thanks.

#2 Elise Alley

Elise Alley

    iThemes Support

  • Administrators
  • Others: All Plugins, All Themes, Members, Moderators, Toolkit, Webdesign
  • 5,209 posts
  • LocationOklahoma City, OK

Posted 16 May 2014 - 01:59 PM

Hi Doug,

I'm not sure know what your question is.  You said you can get the layout to display, correct?  Are you not able to pull in the products?  

Unfortunately, there are known issues with Exchange and Builder Views.  That shouldn't stop the products from being pulled display, just how they are displayed.

As for the product images, they won't display on category pages by default.  You will need to edit your archive.php (or category.php file, depending on your theme):  http://ithemes.com/codex/page/Exchange_FAQs:_How_Do_I_Show_the_Product_Featured_Image_on_Archive/Category_Pages

If you can clarify the issue you're having, we'll do our best to help you out.

Thanks,

Elise

#3 Doug LaMunyon

Doug LaMunyon

    Advanced Member

  • Members
  • Others: Toolkit
  • PipPipPip
  • 202 posts
  • LocationCortez, Colorado

Posted 16 May 2014 - 02:54 PM

I want a page to show one Exchange Product Category using the portfolio extension. I do this all the time...
http://ithemes.com/codex/page/Builder_Extensions:_Customization_Examples#Showing_posts_from_a_category_on_a_separate_page_and_applying_an_extension

The problems...
1. My above referenced query does not single out the Exchange Category. Instead, it shows all of the exchange products. If done correctly, only the first post on this page should show (Kimberly Kuhn Rug).
http://twinravenz.dmlwsdev.com/products/navajo-rugs-for-sale/
2. The product image isn't showing. Can you apply the FAQ instructions you referenced to an extension rather than a archive/category page?

#4 Doug LaMunyon

Doug LaMunyon

    Advanced Member

  • Members
  • Others: Toolkit
  • PipPipPip
  • 202 posts
  • LocationCortez, Colorado

Posted 19 May 2014 - 01:07 PM

Thoughts?

#5 Ronald

Ronald

    Forum Admin

  • Administrators
  • Others: All Plugins, All Themes, Moderators, Webdesign
  • 29,910 posts

Posted 20 May 2014 - 06:41 AM

Hi,

this (red) part of code doesn't seem correct, what do you try to accomplish?

query_posts("it_exchange_category&tag_ID=7&post_type=it_exchange_prod&paged=$paged");

Can you take that out, and try again?

To select a category, you can use the "category name" parameter, see http://codex.wordpress.org/Function_Reference/query_posts#All_Posts_in_a_Category

Ronald

Join the iThemes Builder Community on Google+.



To ensure that we can process your support request efficiently, ALWAYS include a link to your site, and/or the page your request is related to. Please also read the forum guidelines.



When asking your question/posting your request on the forum, please be as concise and specific as possible. The shorter your request, the more to the point, the more specific, the easier it will be for us to try and help out.


#6 Doug LaMunyon

Doug LaMunyon

    Advanced Member

  • Members
  • Others: Toolkit
  • PipPipPip
  • 202 posts
  • LocationCortez, Colorado

Posted 20 May 2014 - 09:39 AM

Thanks Ronald. Here is what I got...

This query brings in ALL exchange products (regardless of category).
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts( 'post_type=it_exchange_prod', '&paged=$paged' ); ?>

This query narrowed the posts to the category I needed.
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("it_exchange_category=rug-display-combo&post_type=it_exchange_prod&paged=$paged"); ?>

So glad it works now! Your help is appreciated.
-d

#7 Doug LaMunyon

Doug LaMunyon

    Advanced Member

  • Members
  • Others: Toolkit
  • PipPipPip
  • 202 posts
  • LocationCortez, Colorado

Posted 20 May 2014 - 09:50 AM

Oops. I forgot about the featured image. It still doesn't show up. I tried these instructions: http://ithemes.com/codex/page/Exchange_FAQs:_How_Do_I_Show_the_Product_Featured_Image_on_Archive/Category_Pages

No luck. Here is the code I am trying (just the loop part of the functions.php file for the extension): http://pastebin.com/Nr9f5b8M

#8 Ronald

Ronald

    Forum Admin

  • Administrators
  • Others: All Plugins, All Themes, Moderators, Webdesign
  • 29,910 posts

Posted 20 May 2014 - 01:40 PM

Hi,

the first line of the code as instructed in the codex article should go after the line that says the_post()

Ronald

Join the iThemes Builder Community on Google+.



To ensure that we can process your support request efficiently, ALWAYS include a link to your site, and/or the page your request is related to. Please also read the forum guidelines.



When asking your question/posting your request on the forum, please be as concise and specific as possible. The shorter your request, the more to the point, the more specific, the easier it will be for us to try and help out.


#9 Doug LaMunyon

Doug LaMunyon

    Advanced Member

  • Members
  • Others: Toolkit
  • PipPipPip
  • 202 posts
  • LocationCortez, Colorado

Posted 21 May 2014 - 11:18 AM

Perfect! Thanks so much.



Reply to this Topic


ATTENTION
If this topic is marked RESOLVED or INFORMATION, or if you are NOT experiencing EXACTLY the same issue, please start a new topic to provide the details of your problem. If the solution provided doesn't work for you, you should start a new topic. If you feel this thread contains relevant information, you may include a link to it in your new topic. To ensure that we can process your support request efficiently, ALWAYS include a link to your site, and/or the page your request is related to. When posting your question or request on the forum, please be as concise and specific as possible. The shorter and more to the point you can make your request, the better.

For BackupBuddy related issues, be sure to include the status log from your most recent backup.

CLICK HERE to start a new topic in the Exchange ecommerce plugin forum.


  



Also tagged with one or more of these keywords: resolved

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users