Title: PHP integration in the template default.php
Last modified: August 22, 2016

---

# PHP integration in the template default.php

 *  [Eric3005](https://wordpress.org/support/users/eric3005/)
 * (@eric3005)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-integration-in-the-template-defaultphp/)
 * Hello!
 * First of all, great plugin that is exactly what I need !!
 * I try to use it for a portfolio isotope with a custom taxonomy.
 * The template of my loop:
    <article class = “portfolio <php $ Project-> filterClasses();?
   >” data-category = “filterClasses () <php $ Project-?>;>”> <img src = “<php echo
   $ t> image-?> resizedImgUrl ($ content-> get_origImage (), 350,0);>” alt = “”
   class = “fullwidth”> </ article>
 * But it generates me an error (Syntax error, unrecognized expression <article 
   class = “portfolio) 🙁
 * Would you have any idea how to integrate this template?
 * Thank you in advance!
 * Eric
 * [https://wordpress.org/plugins/ajax-load-more/](https://wordpress.org/plugins/ajax-load-more/)

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

 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-integration-in-the-template-defaultphp/#post-5404885)
 * So it’s failing on the `<php $ Project-> filterClasses ();?>` line as the repeater
   template likely doesn’t know what this function is…
 * I assume it works if you remove this line?
 * There have been other posts along these lines where functions are not available
   in the repeater templates.
 * I might start a new post on stack overflow to see if anyone has suggestions.
 *  Thread Starter [Eric3005](https://wordpress.org/support/users/eric3005/)
 * (@eric3005)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-integration-in-the-template-defaultphp/#post-5404893)
 * Thank you for your quick response! It works when I joined my functions in the
   repeater template.
 * However my portfolio base works with filters to display the posts based on the
   category clicked (with the attribute data-filter). Will has a way to run it with
   the plugin?
 * Thank you very much in advance!
 * Eric
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-integration-in-the-template-defaultphp/#post-5404895)
 * Would you be comfortable posting your question on StackOverflow?
    [http://stackoverflow.com/questions/ask](http://stackoverflow.com/questions/ask)
 * I would post it but I won’t be able to test if anyone has a reply.
    Let me know,
   if not I can try to replicate your issue and post.
 *  Thread Starter [Eric3005](https://wordpress.org/support/users/eric3005/)
 * (@eric3005)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/php-integration-in-the-template-defaultphp/#post-5404900)
 * Ok I like that.
    Thank you so much!
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-integration-in-the-template-defaultphp/#post-5405106)
 * Hi Eric,
    Were you able to post the question?

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

The topic ‘PHP integration in the template default.php’ is closed to new replies.

 * ![](https://ps.w.org/ajax-load-more/assets/icon-256x256.png?rev=2944639)
 * [Ajax Load More – Infinite Scroll, Load More, & Lazy Load](https://wordpress.org/plugins/ajax-load-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-load-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-load-more/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-load-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-load-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-load-more/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/php-integration-in-the-template-defaultphp/#post-5405106)
 * Status: not resolved