Trying to load content of a post via AJAX
OK I’m trying to load content of a post via AJAX.
OK I’m trying to load content of a post via AJAX.
I can access the public side of the site. But the dashboard comes up blank. The log shows an error pointing to the RevSlider plugin: PHP Fatal error: Uncaught Error: [] operator not supported for strings in /var/www/html/wp-content/plugins/revslider/includes/framework/base-admin.class.php:141 Here’s the full trace: #0 /var/www/html/wp-content/plugins/revslider/admin/revslider-admin.class.php(1143): RevSliderBaseAdmin::addMetaBox('Revolution Slid…', '', Array, NULL) #1 /var/www/html/wp-content/plugins/revslider/admin/revslider-admin.class.php(145): RevSliderAdmin->addSliderMetaBox() #2 /var/www/html/wp-content/plugins/revslider/admin/revslider-admin.class.php(87): RevSliderAdmin->init() … Read more
for a personal plugin (nothing going to the public or commercial), I built an AJAX form and its endpoint is a custom endpoint (REST Api).
1) My site has posts, and 2 custom post types (news & essays)
2) They all share normal categories like sports & health (no custom taxanomy involved)
3) Using the generic category.php template, how do I make it so this template handles all categories while displaying all content falling under it regardless of content post type.
I’m new to SQL and am wondering if I need to use wpdb->prepare for the following query to a table I’ve created
Hy, i make a slide for news, the question is how can i reduce the dathabase queries…ore how can i compress this code…
Based on my understanding of hooks, you create a hook, by doing do_action(‘hook_name’); then add something to said hook and call the method where you want it to do the hook, so:
I’m using a plugin, NextGEN gallery, to display photos. Each gallery from this plugin corresponds to a different sub-page, so I’m using conditional shortcodes to assign the right gallery to it’s corresponding sub-page.
Problem is, it’s not working. I’ve used this exact setup before without issue, which leads me to believe that whatever is causing the problem now is probably something small I’m overlooking. I think a pair of fresh eyes would help out a lot. Thanks in advance.
At the moment I have an ajax that works (I get a success [200] response), but having an issue with the action hooks on the response. The JSON object is not coming back, instead I’m getting a 0.
I tried tplacing this: