Title: Blog loop and PHP
Last modified: August 22, 2016

---

# Blog loop and PHP

 *  Resolved [vitsippa](https://wordpress.org/support/users/vitsippa/)
 * (@vitsippa)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/blog-loop-and-php/)
 * Hi, I just started testing the product catalog (free version) and it looks really
   promising. Very easy user interface.
 * But I have a problem: When I click on my “Products” page in the top meny it sends
   me to that page. But the Products page meny item in the top meny is not marked
   as clicked, instead the “Blog/News” meny item is marked, so it looks as I am 
   on a blog page. I understand it is using the same loop, but I don´t want that
   to show like this.
 * I have not made the PHP-fix yet. Do I have to?
    If I do, will it be overwritten
   every time I update the theme or WP??
 * [https://wordpress.org/plugins/ecommerce-product-catalog/](https://wordpress.org/plugins/ecommerce-product-catalog/)

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

 *  Plugin Author [ndre](https://wordpress.org/support/users/ndre/)
 * (@ndre)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/blog-loop-and-php/#post-5852397)
 * Hi,
 * You don’t have to do the theme integration if everything looks fine. You can 
   do the theme integration in [child theme](http://codex.wordpress.org/Child_Themes)
   to be able to update the theme at any time.
 * Thank you for reporting the problem with the menu. Actually currently there should
   be nothing highlighted as current menu item. I will add this with the next update.
 *  Thread Starter [vitsippa](https://wordpress.org/support/users/vitsippa/)
 * (@vitsippa)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/blog-loop-and-php/#post-5852443)
 * Hi, I hope my english is understandable. The page I am currently on is “highlighted”/
   marked in the topmeny because that is how I have set up my theme to do (change
   font color of the menu item when you are on a certain/current page). I like that.
   
   But the problem is that the Blog menu item is marked, not the Product menu item.
 * In my other thread you said I could use shortcode instead for the products listing
   page, to solve a widget problem. That seems to work and also solved the problem
   with the meny item! When I click on “Products”, the Products meny item is marked
   correctly. Good!
 * BUT!
    When I click on a category or a single page, the Blog/News meny item is
   still marked instead of the Products! Is it possible to solve that too? (Otherwise
   I will have to skip my use of show current page/meny item, but that is not an
   ideal solution).
 * —
    I don´t use a child theme, so if I understand you, I would have to do add 
   the theme integration extra file every time I have updated my theme, because 
   it would be erased?
 *  Plugin Author [ndre](https://wordpress.org/support/users/ndre/)
 * (@ndre)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/blog-loop-and-php/#post-5852446)
 * Yes if you put the integration file into main theme folder it will be overwritten
   when you update the theme. The correct way is to use the child theme. You should
   use the child theme for any modifications (e.g. your theme style.css or templates).
 * It seems that your theme is assigning the current menu item for any custom post
   type to your blog page. This is not a right way to do it. What theme are you 
   using?
 *  Thread Starter [vitsippa](https://wordpress.org/support/users/vitsippa/)
 * (@vitsippa)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/blog-loop-and-php/#post-5852457)
 * Hi, I skipped the marking of selected page in my meny. Easiest solution. So problem
   kind of solved. (Another solution would have been a child theme and/or maybe 
   the integrated file, but I have no other problems with this plugin so I skip 
   that.)
 * Now I am done testing. I am happy with this plugin and will use it for my catalog.

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

The topic ‘Blog loop and PHP’ is closed to new replies.

 * ![](https://ps.w.org/ecommerce-product-catalog/assets/icon-128x128.png?rev=1103243)
 * [eCommerce Product Catalog Plugin for WordPress](https://wordpress.org/plugins/ecommerce-product-catalog/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ecommerce-product-catalog/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ecommerce-product-catalog/)
 * [Active Topics](https://wordpress.org/support/plugin/ecommerce-product-catalog/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ecommerce-product-catalog/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ecommerce-product-catalog/reviews/)

## Tags

 * [loop](https://wordpress.org/support/topic-tag/loop/)
 * [menu](https://wordpress.org/support/topic-tag/menu/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 4 replies
 * 2 participants
 * Last reply from: [vitsippa](https://wordpress.org/support/users/vitsippa/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/blog-loop-and-php/#post-5852457)
 * Status: resolved