Wordpress loop
Post gallery as carousel
So I have this idea in mind: I would like to create custom page template, and whenever in post gallery is between tags, for example:
get_permalink post id outside loop
I’ve been struggling with this question for a while and altho there’s some topics regarding this subject I’m not sure how to implement it. It’s
How can I use get_permalink() outside the loop?
I’ve been struggling with this question for a while and although there’s some information regarding this subject I’m not sure how to implement it. My
Why is this coming back as null? Thats wrong. There is one post
I have a category, called events. It is assigned to one post. So I created the following loop: $args = array ('category_name' => 'events', 'posts_per_page'
Why am I getting posts back when I shouldnt
I have the the following variables being populated: $posts = wp_get_recent_posts(array ( 'numberposts' => 4, 'post_status' => 'publish' )); $categoryPosts = wp_get_recent_posts(array ( 'numberposts' =>
Pagination stops working at page page/20, page/21 returns 404
I got a paged loop that pulls in 4 posts per page from custom post type. It works great, with the only downside that the
Pagination returns 404 after page 20
I got a paged loop that pulls in 4 posts per page from custom post type. It works great, with the only downside that the
How to extract information from a wp_query result?
Background: I’m using a wordpress theme called skt full width. I am modifying their front page slideshow, so that it displays six random images instead
How to get to a specific position in wp_query?
Background: I’m trying to display images in a slideshow, and I want to select those pictures randomly from the website’s media. The image has a
Selecting specific posts with an if statement in a counted loop
I’m currently counting the posts in the loop… <?php $count = 0; ?> <?php /* Start the Loop */ ?> <?php while ( have_posts() )
query_posts clarification needed
I understand for the most what query_posts does and how it works. I also know it’s not good practice to use it. But I would
How to access $wp_query object from array of posts given by get_posts?
I have a simple custom query driven by get_posts: <ul> <?php $args = array('post_type' => 'event', 'numberposts' => 6 ); $myposts = get_posts( $args );
How can I display excerpts of my Recent posts on my static homepage?
I am using the openstrap theme. I want a static home page on my WordPress website, I have already set this up and have a
Function using get_posts() with tax_query not working when called from functions.php
I want to get an array of all the ‘bands’ in taxonomy ‘types’, and use the array later on in other functions. I have the
Display the latest post from some selected authors
I’m building a slider that will display the latest post of a few selected authors. So far, I’ve written this: 'post', 'posts_per_page' => '1', 'author'
Might be impossible - conditional bootstrap rows in WordPress loop? Currently have 2 loops
I finally got a Bootstrap posts grid I’m happy with for this video portal site. Before I was having a lot of issues with posts