The archives tag has no wiki summary.
0
votes
1answer
755 views
Can you orderby slug in a taxonomy archive page using WP_Query?
In my taxonomy.php, my query is `
$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
$wpq = array ('posts_per_page' => -1, $term->taxonomy => ...
0
votes
1answer
363 views
Can't Access Sessions or Variables through pages
So I'm trying to use a session to move a variable through pages. For some reason I literally cannot access anything from index.php to archive. I declare my session at the very top of my header.php ...
1
vote
3answers
1k views
How to add meta box to backend menu page
I need to add a meta box to the backend menu page to list all the available post types, both the defaults & the custom ones. It will contain a list that contains a link to the archive pages only ...
-2
votes
1answer
156 views
Can a scrollable date picker be done in Wordpress for archives?
I've been asked by a client to do this:
But I have no idea how I would go about it, particularly in Wordpress. I searched around Google a bit, but it looks like this design was just lifted from an ...
0
votes
2answers
821 views
How to disable monthly archive
Is there a way to disable archives pages, specifically monthly archives?
1
vote
2answers
680 views
Pagination on taxonomy archive pages breaks
I've created archive pages for all my taxonomies (taxonomie-{taxonomy-name}.php) and this works fine. The slug of my taxonomies are the same as the slug of it's post-type. This makes it possible to ...
2
votes
1answer
564 views
Page queried instead of a custom taxonomy
When I try to get an archive for a custom taxonomy, WP searches for a page and doesn’t find anything.
The Setup
My code from the functions.php:
add_action( 'init', 'register_store_taxonomy' );
...
0
votes
2answers
261 views
wordpress showing all posts instead of date range
When going to http://craigmdennis.com/articles/ Wordpress uses the index.php template.
When you go to http://craigmdennis.com/2010/05/ Wordpress uses the same template (markup below) but shows the ...
0
votes
1answer
91 views
Date archive permalinks for custom taxonomy
Is it possible to have date based permalinks for a custom taxonomy?
ie http://www.blah.com/taxonomy/taxonomy-term/2011/08/08
TIA!
d.
3
votes
3answers
590 views
Custom Post Type Archives with 0 Posts Redirects as 404
I'm working with the new custom post type archives in 3.1 and I noticed that when my post type has 0 posts, the archive for the type results in a 404. Looking at the order of hooks being processed, ...
0
votes
1answer
80 views
Query Posts Incorrectly Displaying Tags Archives
When I go to a tag archive ( http://themeforward.com/demo2/tag/n/ for example) ALL the posts on my blog are being displayed, not just the posts with that tag - and I'd like to fix this.
Here's my tag ...
-1
votes
2answers
47 views
All font sizes change when manually typing 2011 into url and going to archive page
I am developing a site on MAMP and everything is going fine except that I thought I would check how all the default archive pages look. I typed 2011 at the end of the base url and it retrieved a ...
0
votes
1answer
149 views
Archive with specific keyword by category sorted by date
I need help to create a template for an archive with specific a keyword by category sorted by date. This is the code for my archive page so far: http://pastebin.com/WEjNGhJ1
My client wants every ...
6
votes
3answers
498 views
Order posts (across the whole site) by metadata date
My custom 'Home' page is set to sort my custom posts via the custom date field with this (updated to be custom named) code in functions.php:
// sort order for home page
add_action('wp', ...
4
votes
1answer
1k views
Custom Post Type Archives by Date with Custom Permalink
I'm a bit stuck with getting the custom permalink for custom post type (CPT) archive to work.
I've registered my 'press_release' CPT as following:
add_action('init', 'press_release_post_type_init');
...
0
votes
1answer
880 views
Archive limit the text of the_content
here's the code for my archive page..
<?php
/*
Template Name: Archive Page
*/
?>
<?php get_header(); ?>
<div id ="maincontent"class = "group">
<?php ...
0
votes
1answer
134 views
How can I allow users to edit text that will be displayed on a custom post type archive page?
I like the custom post types Wordpress offers. Most of the time I like the way that the archive of custom posts is displayed. For example if you have a custom post type of top_hats you can visit ...
0
votes
2answers
413 views
How would you create a “weekly” archive?
I'm looking to create individual archives for each category of my website, but want to them to break into weeks. Check out the linked image (can't embed images as a new user?):
...
0
votes
1answer
472 views
Page is defaulting to archive page and not designated template
I created a page called "Projects" through the wordpress admin
I created a template called "Projects"
Set the "Projects" page to use the Projects template.
How come when I navigate to the Projects ...
0
votes
1answer
80 views
Archieve page, Advertisement Every 3 Posts
Currently this code http://pastebin.com/As0exwZy is displaying 10 posts because I set it in the Reading settings. Now what I want is to display a advertisement(widgetize) every 3 posts... how can I do ...
1
vote
0answers
151 views
Tough Custom query: archive page with custom meta_value_num [closed]
I trying to add parameters to the query string of an archive page.
So I verified that the following method works:
query_posts($query_string . ...
0
votes
1answer
148 views
Archives only display blog index page [closed]
A long time ago I created a wordpress site for a local am-dram group at http://mersthamdrama.org.uk
I created a custom theme, and added some plugins to make it easy for editors to add Past ...
4
votes
1answer
90 views
Multiple Paginations on one Page
I have a page template which aggregates multiple CPT's in different areas of the page and displays the first post from each CPT. I'd like to add a separate pagination for each of them. Is it possible ...
0
votes
1answer
288 views
Preview Post/Custom Post types in Archive
I have a few custom post types on my website. One of these is a front page slider. I add some text, images, links and as soon as I publish the CPT appears as a slide and I'm a happy camper. The ...
0
votes
1answer
1k views
show only sub categories if available?
Hii i want that when i click on category link that show sub category if available instead of posts list
If No Sub category available then show normal posts
how to do this that if available sub ...
2
votes
1answer
686 views
How to limit wp_get_archives to show months for the X years only
Can anybody show me how to set a limit on wp_get_archives to show archives by month BUT only those for the year 2010 and above - so the 2009 monthly archives are not shown on the sidebar archive ...
1
vote
1answer
860 views
Archive widget - limit number of months to 12
The default Archive widget display monthly archives in a dropdown.
I would like to limit the number of months to 12 (in dropdown).
What filter I should apply in my functions.php?
I tried this, but ...
0
votes
3answers
382 views
Automatically create a new page daily with last three posts
Is it possible to create the following:
A new page dynamically daily, containing the last three posts
Archive this page, so that tomorrow's page is a new page, with the three newest posts
...
1
vote
1answer
788 views
Show scheduled posts in archive page
I'd like my archive.php page's daily view (is_day) to display scheduled posts (post_status=future). For example, if I go to mysite.com/2011/05/20 I would see all posts scheduled to appear on May 20.
...
0
votes
1answer
1k views
How to create an attachments archive with working pagination?
This might sound like query_posts with pagination problem number 2103024 but I think this one might be special.
My WordPress site is basically a huge database of car images. Each image should have ...
2
votes
1answer
547 views
Display all custom post types in archives.php
How would I do this?
archive.php only has this:
wp_get_archives('type=monthly');
And wp_get_archives() does not have a parameter to display all post types.
Also I think archive-[post_type].php is ...
0
votes
3answers
704 views
Category archive by year with permalink support /category/YYYY
I am currently looking at creating a new type of site archive within WordPress that allows users to filter by category AND by year rather than the default category OR year.
I am hoping to build a ...
1
vote
0answers
160 views
How to make pagination work not for a whole category but for a part of it? (WP_Query) [closed]
In my example you can see that i have to paginate posts from category 6 with meta_value='izhs' for meta_key='dachaizhs'
Now it works like it paginates the whole category, and then exclude from each ...
0
votes
1answer
370 views
Listing authors and date archive from custom post type
I've got a cpt called 'blog', now I would like to list all authors that contributed to that cpt. Also I would like to list all blogposts (from the 'blog' cpt) grouped in months, like wp_get_archives() ...
0
votes
1answer
95 views
Query Posts Creates 404 Error
When I'm on archives pages I am using the code below to query posts. In my theme options to_count_home calls the number of posts.
WordPress isn't generating the correct number of pages based on ...
0
votes
1answer
369 views
Difference between $numpages & $max_page on archive pages
After taking a look at global $max_page; and global $numpages; on category-archive pages (is_archive() || $GLOBALS['wp_query']->is_archive returning true), I see the following return values:
...
0
votes
1answer
243 views
A problem with date archives
I downloaded a widget for my blog, which works just like the calendar widget but displays a custom post type instead. It correctly marks my CPT-posts and creates links, such as ...
0
votes
2answers
147 views
How can I tell if I'm on a custom post type archive page?
I have set up a custom post type and a custom taxonomy for it. I'm using the latest version of Wordpress. I believe I should be using the is_post_type_archive function, but this seems to be is ...
0
votes
1answer
362 views
Category Archives: Show posts categorized in parent category only
When I view a category page in 2010 theme, it shown posts categorized in:
the category visible in url
child categories of 1.
I want to restrict the results to 1. only.
Please help.
1
vote
1answer
177 views
Need to check is_archive during init
I need to check if a page is an archive or not, before my plugin does some URI manipulations. These manipulations only work before wp but if I perform them first and then check is_archive, the check ...
1
vote
2answers
294 views
How do I call posts with a certain tag?
I use this to call posts:
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$per_page = get_option('to_count_archives');
...
1
vote
1answer
636 views
Displaying year, month and day archives differently
I'd like to display daily archives differently than monthly/yearly archives. How do I check to see if the archive template is being pulled for a daily archive vs. a monthly/yearly archive?
0
votes
1answer
393 views
How can I set a post thumbnail image without making a featured image?
When I set a featured image, it is allways on the upper left corner of the post. Sometimes, like in this example post, I only have very few text and one image. But this image should not be on the ...
5
votes
2answers
4k views
get_categories for custom post type with a specific custom taxonomy attached
Basically I have a custom post type of 'products' which has two taxonomies attached to it...the normal 'category' and a custom taxonomy called 'brands'.
I have a page which is 'brand' specific. On ...
0
votes
1answer
45 views
Archiving custom post content?
Last year, I built a movie festival website using "movie" as a custom post type.
Now that the festival is over and we're getting ready for next year, how would I archive that content so that I can ...
0
votes
2answers
633 views
Display most recent post in category instead of archive?
I've successfully redirected my blog page to my most recent post - i.e. so when you click the 'blog' link in the nav it goes to the most recent post page and you can click next/prev buttons to ...
0
votes
1answer
1k views
Simplest Way to Build Custom Archives Page?
I am looking to create a page in Wordpress to output links to all of our posts from every month since we launched the blog. I have seen the archive.php template file in Wordpress, but this seems to ...
0
votes
1answer
981 views
How can I get the Month Name from Archive?
I have created an archive page.. where i wanted to display which archive month is displaying.. how can I display the month name?
0
votes
1answer
123 views
Determine the category that an archive-page is for
On a category archive page, how do I determine what category the archive page is for? I need either the id or the slug of the category.
I am not looking for get_the_category(). This will give me all ...
0
votes
1answer
310 views
WordPress sitemap with Custom Post Types
This is a really neat idea but I'd like to expand upon it. In his post, David Kennedy writes out some code to allow a basic wp_list_pages type feature for Custom Post Types to use as a sitemap. His ...