Linked Questions

0
votes
2answers
90 views

use advance custom field inside query post command [closed]

I can't find a solutions in internet or advance custom field website docs about this. I hope wordpress genius can help me. I use http://wordpress.org/extend/plugins/advanced-custom-fields/ for themes ...
0
votes
0answers
49 views

Query posts dynamic date range

So, I'm using the following to filter posts: $paged = is_front_page() ? get_query_var( 'page' ) : get_query_var( 'paged' ); $args['paged'] = $paged; ...
0
votes
1answer
111 views

Co-authors plus problems with query_post

I had a query_post that worked, aimed lists only posts by author own, but now that I updated wordpress stopped working. The query_post only works when you have only one author. I updated WordPress ...
0
votes
2answers
60 views

Custom Field Multiple Clauses

I am having a weird situation, I have two meta keys in my custom posts. Start Date and End Date, In simple SQL, I want to execute following query where startDate > '2013-12-10' and (startDate ...
0
votes
3answers
320 views

How to show a popular post in wordpress in last 24 hours?

I have the query_post on my codes. This will display the popular post of all time. But I want to dispaly the popular post in past 24 hours. How do I do that? <?php ...
0
votes
1answer
127 views

how to show posts on different pages if number of post per page is one

i have a category named "services". when "our services" is clicked control go to category.php file. in that i need to show all the posts in that service category. i can show all of them in a single ...
0
votes
3answers
69 views

content and excerpt not displaying

I am using get_the_title(453) and while the title displays, i am unable to display the content and the excerpt for the page with the id of 453. The following is my code get_the_title(453); ...
0
votes
1answer
239 views

3 random images from custom post type, each in a div with a diffrent class

I'm trying to build a loop using query posts to display 3 featured images from the custom post type 'portfolio'. My problem is that each picture has to be in a div with a diffrent class, so i was ...
0
votes
1answer
89 views

Custom Blog Loop on Home Page

I wanted to see if it was possible to display the "newest" post from all top level post categories on the home page using args in the loop? See http://blog.reneerouleau.com/dev/ for example of what I ...
0
votes
3answers
38 views

Include one page/post into query which is already returning posts

I have my news query which is on my index file. I want to include a post into this query which is infact a page. Is there anyway to do this? <?php query_posts(array( 'posts_per_page' => ...
0
votes
1answer
211 views

Order by ASC, DESC, Title, Date from URL on custom page template post

I have a Page with Custom template. In this template I have index all posts of a category with many more modification. I know i can do this by creating Category specific template but this is different ...
0
votes
2answers
2k views

Check if meta key value already exists

Let's say that I have few posts with meta key "videoid". Value of that meta key is different for every post (and has to be different). When adding new post, how can I check if videoid with that exact ...
0
votes
2answers
193 views

wp_query within function within wp_query

I have a query which looks like this: $args = arguments for the query $query = new WP_Query($args); while ($query->have_posts()): $query->the_post(); $post_id = get_the_ID(); echo ...
0
votes
1answer
298 views

How do I query_posts in cat=1 AND not in cat=2

Let's say I have 3 categories, College (cat=1), Corporate (cat=2), and Idea of the Week (cat=3) There is a home page for College and a home page for Corporate. On the College home page, in one ...
1
vote
1answer
112 views

PHP Code to Display Term URL & Name of a Post Under a Custom Post Type

I am featuring a post in my footer(outside the loop) from a custom post type and am using Advanced Custom Fields plugin to do so. This is the code I am using: <h5>Featured Movie</h5> ...

15 30 50 per page