Skip to main content

Unanswered Questions

1,830 questions with no upvoted or accepted answers
2 votes
0 answers
2k views

multiple loops with pagination on the same page

I'm searching the web for this answer for three weeks now. Tried many things but nothing seems to work as how it should work. There must be a kind of trick what probably won't make sense to anybody ...
2 votes
0 answers
1k views

jQuery Plugin to use Wordpress functions in AJAX request

I'm using Chained Selects jQuery Plugin to create multiple chained selection fields. I'm using the remote version of the plugin to build the related options by means of AJAX request from a separate ...
2 votes
1 answer
427 views

Converting multiple loops into one single loop with pagination

I am using Isotope jquery plugin to filter/sort posts in Wordpress but to correctly filter the posts into the right order I have needed to output each category one after the other. To do this I've ...
2 votes
0 answers
97 views

Display posts with comments closed, with pagination?

i'm using a custom query, which needs to display all posts with closed comments. I have this <?php $the_query = new WP_Query('showposts=-1'); ?> <?php while ($the_query -> have_posts()) :...
2 votes
1 answer
367 views

Replace default Wordpress search behavior with Sphinx

I want to implement Sphinx Search in my Wordpress site but I'm not exactly sure how to change Wordpress search behavior to use Sphinx. How do I get Sphinx Search engine to replace whatever Wordpress ...
2 votes
1 answer
246 views

SSO autologin Wordpress + Ajax

That one keeps me awake at night. The problem is that the user is properly logging in, but AFTER page refresh and should be immediately logged in without page reload. Need a fresh eyes to look at it. ...
2 votes
2 answers
424 views

Display custom field of specific post where post title matches variable

I have a custom post type called vacancies and another called our_homes How do I get the google map coordinates from our_homes and display inside the vacancies single post template? My attempt below ...
2 votes
1 answer
1k views

WordPress Ajax callback function from plugin - OOP

Using PluginBoilerplate to write a plugin. I need to make an ajax call. I added to main plugin.php file, class to register scripts and handle ajax calls. if ( ! class_exists( 'PoorMansNameSpaceAJAX' ...
2 votes
1 answer
43 views

Ajaxing in functions.php

To ajax filtered posts, I needed to put most of my index.php template into the functions.php file (followed this tutorial) and do from there. But now javascript won't work - basically the accordion ...
2 votes
1 answer
2k views

Refine/Filter WP_Query Posts with jQuery or Ajax

I know this has been asked many many times, but I literally searched for an answer for more than 5 hours without finding anything that drives me in the right direction. What I'm trying to achieve is ...
2 votes
2 answers
4k views

Prevent page reload after ajax form submission

I'm trying to submit a form in wordpress with ajax. But after the first submision the page itself is called again. My Form <form class="et_pb_contact_form clearfix" method="post" action="" id="...
2 votes
2 answers
2k views

Running main loop 2 times with conditional statement

I'm trying to achieve simple result. Run main loop 2 times, but first time for the one post with different layout, and second time for the rest posts with different layout. I found that condition 1 > $...
2 votes
2 answers
3k views

Wordpress Ajax Getting Response "Null"

I am trying to get ID of post on HOME page .So far my coding is wp_enqueue_script( 'my-ajax-request', get_stylesheet_directory_uri() . '/js/ajax.js', array( 'jquery' ) ); wp_localize_script( 'my-...
1 vote
0 answers
19 views

Dinamis Query Loop template Custom Post Type dan Taxonomy di WordPress Blocks dengan PHP

Google Translated: Hello everyone, I’m trying to create custom blocks in WordPress that dynamically display posts from custom post type that I’m creating, which is “products”. I also want to sift the ...
1 vote
0 answers
10 views

Inside nested wordpress loop (post & post-type) " in_array()" function can't retrieve the matching value

I want to display the logo of a metadata from post-type for all post matching same name/category. Posts-type: are Activities (sport). Posts: are News from these activities Inside my first loop I get ...

15 30 50 per page
1
4 5
6
7 8
122