Title: APL PHP_Function Shortcode and Gantry
Last modified: October 16, 2018

---

# APL PHP_Function Shortcode and Gantry

 *  Resolved [signale](https://wordpress.org/support/users/signale/)
 * (@signale)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/apl-php_function-shortcode-and-gantry/)
 * Just to enrich the forum this time.
    Now, I’ve successfully displayed posts list
   on one of the standard sites(very custom layout, so I used PHP_Function Shortcode).
   But when I tried to transfer the solution into the Gantry based site, it refused
   to work. The work around: – Gantry got Development mode, so to see the actual
   error, it needs to be turned on. – Then the message displays the issue – it expects
   2 params (despite the fact that on other site didn’t) – After giving the first
   param=post, it loads
 * So, be aware 🙂
    -  This topic was modified 7 years, 7 months ago by [signale](https://wordpress.org/support/users/signale/).

Viewing 1 replies (of 1 total)

 *  Plugin Support [Advanced Post List](https://wordpress.org/support/users/advancedpostlist/)
 * (@advancedpostlist)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/apl-php_function-shortcode-and-gantry/#post-10791443)
 * Yea, the post param is required as the first param, and shortcode attributes 
   as the 2nd param. It often gets missed, and have thought about improving the 
   concept (without introducing breaking changes).
 * The error probably displayed because the live site may be running PHP 7.2+; which
   may explain why one site was different from the other.

Viewing 1 replies (of 1 total)

The topic ‘APL PHP_Function Shortcode and Gantry’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/advanced-post-list.svg)
 * [Advanced Post List](https://wordpress.org/plugins/advanced-post-list/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-post-list/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-post-list/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-post-list/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-post-list/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-post-list/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Advanced Post List](https://wordpress.org/support/users/advancedpostlist/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/apl-php_function-shortcode-and-gantry/#post-10791443)
 * Status: resolved