Skip to main content

Questions tagged [loop]

The core of the WordPress query, the loop offers an easy way to access post information and display it on your website.

1 vote
1 answer
49 views

In my example below, when using fields => ids https://developer.wordpress.org/reference/classes/wp_query/#return-fields-parameter to get an array of post IDs, why does var_dump($args->posts) ...
BlueDogRanch's user avatar
0 votes
0 answers
47 views

I'm working on a WordPress shortcode that aggregates data from Gravity Forms entries. I have: Around 50,000 entries on an enrollment form Around 30,000 entries on a feedback form Over 200 trainings I ...
Aristocles's user avatar
0 votes
0 answers
37 views

I'm displaying three lists of events on my site: past events, current events, and future events. The lists are sorted by a custom date time field. The code I have is currently working, but Wordpress ...
Sam Sabin's user avatar
  • 101
0 votes
0 answers
56 views

Example: Treatment - (Term of resource_type Taxonomy) Resource Name 1 (term of resource_name Taxonomy) Resource 1 - Post 1 Resource 1 - Post 2 Resource Name 2 (term of resource_name Taxonomy) ...
Dennis's user avatar
  • 1
1 vote
0 answers
60 views

I have created multiple loop or wpfacet lisiting for featured job(taxonomy) and for main loop which displays job on the basis of location, but https://facetwp.com/help-center/faq/can-i-use-multiple-...
Hawana Tamang's user avatar
1 vote
0 answers
74 views

I am creating a shortcode to fetch the categories of a given post and display them in a stylish way. I made the following shortcode: function t3_categories_fonction(){ global $post; // Get the ...
user28551593's user avatar
0 votes
0 answers
33 views

I need some help creating a specific WordPress query and I am drawing a blank on how to do it. I want to select n posts ordered by the sum of the inverse of the age in days of the comments. I'd like ...
Matthew Brown aka Lord Matt's user avatar
0 votes
1 answer
26 views

I have a few custom post types with custom categories – and i also use the regular posts page for news. At the moment i can only change the number of posts through Settings > Reading > Number of ...
tillinberlin's user avatar
0 votes
1 answer
54 views

I'm a bit new to this so sorry if my explanations are a bit daft. We use custom gutenberg blocks on our site. One of them is a FAQ block where you can add questions/answers and they display as an ...
Andrew Shlaimon's user avatar
0 votes
1 answer
31 views

I am displaying a set of upcoming fixtures for two cricket teams on the same page. The fixtures are created from a CPT and the relevant team is selected from a custom field. I have everything working ...
Craig Watson's user avatar
0 votes
1 answer
48 views

I am experiencing the following error output when using the standard loop on page.php and single.php on a multisite-based WordPress installation. The loops are the same for both template types, with ...
Mike Hermary's user avatar
1 vote
0 answers
27 views

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 ...
iRhyt's user avatar
  • 11
0 votes
0 answers
53 views

Is there a way to query posts for "the loop". But include some filter on the results based on a mySQL Function like St_Distance_Sphere? Or convert a wpdb->query into a form similar to &...
Enjabain's user avatar
  • 101
0 votes
1 answer
88 views

I have created a custom post type and I want to create blocks that display its values. To start with, I created a placeholder that gets replaced with the correct values using PHP. Everything works as ...
Ghiath Sardast's user avatar
1 vote
0 answers
26 views

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 ...
imagIne's user avatar
  • 105

15 30 50 per page
1
2 3 4 5
222