Suggested fix for multiple post types
-
The fix you added in version 1.5.1 did not solve the problem I’ve been having with multiple post types in the shortcode, e.g. post_type=”post, page”, so I had to modify one line in class-cpt-alm-security.php in order to get it to work properly:
Line 20 old:
case self::allow_post_type($post_type):
Line 20 new:
case self::allow_post_type(array_map('trim', explode(',',$post_type))):
Please incorporate this, or something like this, into your next version release.
And with this, I can finally start using cpt-ajax-load-more on my live site!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Suggested fix for multiple post types’ is closed to new replies.