Tagged Questions
0
votes
1answer
21 views
Control content before and after custom post type loop
I am trying to create a left nav menu that contains a couple of different taxonomy lists of a custom post type. For example, the left menu might look like this...
<h2>New Stuff</h2>
...
1
vote
2answers
37 views
Display posts of the last 7 days
I'm trying to display the 5 best rated posts of the last week (7 days) on my website, however I can't seem to figure out how to display them.
Here's what I've achieved so far but it doesn't seem to ...
0
votes
1answer
89 views
Using loop pagination on single.php
I want the main front-page loop to show in a section on both index.php AND single.php templates, with pagination.
Pagination works fine on the homepage, but not on single posts. This is the code ...
0
votes
1answer
54 views
How to break up php code to avoid echo
I have this php code I am using to list all post (titles) with the taxonomy categories names, and its working fine however I will like to break it up and avoid using echo within the php code so that I ...
0
votes
1answer
75 views
Query specific posts per user selections from dropdown menus
This may be a little different than most people do. I'm trying to show certain posts that are determined by 4 different "categories." I have a large database table full of "products" (I'm using the WP ...
0
votes
1answer
194 views
Why WP_Query('showposts=5') shows only 1 post?
I am trying to do a simple query to get the latest 5 posts into an unordered list, but this is only showing 1 result even though I have several posts. I even did an offset, but it shows the next post ...
1
vote
1answer
133 views
Getting movie and serial on actor page
I'm building a cinema site, I came with a problem, let me explain:
Movies- are stored in Post's
Actors- are stored in Post Type - persoane ( taxonomy= lista)
Serials - are stored in Post Type - ...
0
votes
1answer
34 views
Limit the number of child pages
I have this html structure:
<home>
<Web>
<web 1>
<web 2>
<web 3>
<web 4>
<web 5>
<web 6>
<web 7>
</web>
<Print>
...
0
votes
1answer
205 views
Dropdown Menu for Query_Posts
I can successfully query post results using query posts like so...
<?php
// The Query
query_posts("gdsr_sort=rating");
// The Loop
while ( have_posts() ) : the_post();
?>
<?php ...
0
votes
1answer
137 views
Include a specific post to the query_posts and remove it if it is already in the returned list
Bare with me. Firstly, here is my whole script for my featured slider articles:
<div id="featured" class="<?php if ( $responsive ) echo 'flexslider' . $featured_auto_class; else echo ...
4
votes
2answers
399 views
Build a content and excerpt grid loop with paging and options for # of posts
What I'd like to do: on index.php, a loop that shows a selectable number of full posts using the_content and then below that shows a selectable number (the number of posts can be hardcoded in the ...
1
vote
1answer
108 views
Logged in user ID as post ID
Is there a way to automatically insert the current user ID as the post category name or maybe have WordPress display only the post with a category name that matches the current logged user ID?
...
1
vote
1answer
104 views
Sort by page information by Ascending Numbers
Basically I have a problem that I have details being pulled from advanced custom fields and I currently have them ordered by page title in ascending order.
However, instead of ordering them Ascending ...
0
votes
2answers
1k views
How to order posts by modified date without using 'query_posts'?
I have an example basic wordpress theme template here for you. First, please take a quick look at it to get an idea.
<?php
get_header(); ?>
<div id="primary">
<div ...
1
vote
1answer
892 views
Sort query_posts for Parent Pages to menue order or the count?
thanks to a member here i display my Parent Pages in a 2 column grid with title and excerpt. But for some reason i can't figure out how to sort all 5 Pages by the menu order for example or the order ...
1
vote
2answers
1k views
Working with query_posts ( arrays and query strings)
I'm trying to use the search query along with an array of arguments to narrow down search results, but I'm failing horribly. This is what I have so far.
$paged = (get_query_var('paged')) ? ...
1
vote
1answer
855 views
Function to show random posts from a category
Hi to all I'm trying to create a function that can ECHO the excerpt of a random post from a choosen category.
What I did up to now is:
<?php function $titoloslide() = {
...
2
votes
2answers
1k views
Alter query on edit.php
What's the best way to alter the query being run on the Posts Edit screen (edit.php)?
The current method I'm using is by passing an argument to the global $wp_query like so:
$wp_query->query( ...
0
votes
1answer
503 views
simple fields plugin custom query
I have a collection of posts for families. I'm using the simple fields plugin for handle members of the family. Is there a simple way to query posts based on values from the custom fields created by ...
0
votes
1answer
207 views
How to list posts from a plugin taxonomy?
I would like to query posts from a taxonomy created by a plugin (WP Business Directory Manager). How would I do this? I want the query to create html listing of the posts and allow me to list a ...
1
vote
3answers
365 views
Insert all post IDs in new database table
I have a plugin which creates a new database table. Upon activating the plugin is there a way to insert all my posts ids into that table?
Right now I'm using an action hook to immediately insert the ...
0
votes
2answers
813 views
Custom query_posts() parameter
I'm adding voting features to a theme. Visitors can vote posts Up or Down. I created a table for storing number of votes for each post and that works fine. Now I'm trying to sort posts by their votes.
...
