cncup
Forum Replies Created
-
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Disable pagination in pod templateMakes sense and kind of you to suggest. I should have posted the log errors earlier (had to do with Boldgrid mostly). At the moment I’m doing uninstall/re-install of the whole site, WP and database. Luckily it’s a new site.
The ‘debug sql’ query-string parameter should be helpful. Thanks Scott. I will use it.
By the way is the shortcode I posted earlier valid when put inside the template? Specifically the template attribute. It does seem a little odd having to specify the template name in a shortcode that runs in that template. Paul did mention the problem could be the template reloading itself.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Disable pagination in pod templateYes, there are issues here right now that I’m almost certain have nothing to do with Pods. I appreciate your attempt to help. If it’s ok let’s leave the thread open and I’ll post again once the coast is clear and I’m able to get back on topic.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Disable pagination in pod templateThanks for the helpful pointers. I had to learn how to enable and check php error logs, kill the php process, work with SSH terminal and more. Good to know in general.
The error I’m seeing which may or may not have to do with my playing here with things above my pay grade, is a mysqli_query warning: The regular expression contains an unclosed bracket expression in class-wpdb.php.
In the log I see the query, it contains all kinds of Boldgrid things for purchase…
Meanwhile the error message is turning up everywhere in the WP admin. So I’m thrown off topic and performing a backup restore now.I should mention that prior to everything, before the changes that led to error 500, when I included limit in the shortcode it did affect the number of posts (items) shown on the page.
[pods name="my_pod" template="my_pod_template" pagination="false" limit="1"]So the string was recognized as a shortcode already before the constant was defined and the filter added. And at the same time appeared on the page as normal text. I don’t get it.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Disable pagination in pod templateThanks Paul.
I added the constant to wp-config.php. The shortcode still showed as normal text. I then followed the instruction on the next link (“allow shortcodes to be ran within the Pods Templates”) and added the filter:
add_filter( 'pods_shortcode', function( $tags ) { $tags[ 'shortcodes' ] = true; return $tags; });Now the page won’t load. Internal Server Error 500.