The archives tag has no wiki summary.
1
vote
1answer
178 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
300 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');
...
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 ...
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, in Appearance->Menus (/wp-admin/nav-menus.php), to list all the available post types, both the defaults & the custom ones.
It will contain a ...
0
votes
1answer
373 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() ...
3
votes
3answers
4k views
Default archive URL wordpress
In wordpress you have a few 'default' archive URL's. Like for example: http://www.mydomain.com/2011/ generates an overview of the posts of (only) that year.
If you have an category blogs the url ...
0
votes
1answer
397 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 ...
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
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 ...
0
votes
2answers
643 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
987 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
125 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 ...
2
votes
1answer
583 views
Multiple post types in archives (filter?)
I'm trying to get all custom post types to appear in my archive sections on a site, including monthly, tagged, author archives. At the moment, I've thought of something like:
...
3
votes
2answers
2k views
Display list of Sub-Categories and the posts they contain, within one main Category
I've found tons of code and plugins to do various things; from show posts for specific cats, subcats of a cat, etc.. BUT, I cannot for the life of me find, nor do I know the WP API well enough to do ...
0
votes
1answer
312 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 ...
0
votes
1answer
116 views
Highlighting Current Category in the Archive and Feeds page
I needed a category listing in my posts page and I want the current category to be highlighted. I enabled the 'All' category, so consequently, I want the 'All' also to be highlighted when I'm viewing ...
0
votes
2answers
398 views
Easiest way to display post archives in category-then-alphabetical order?
I've got a buddy who's trying to organize his recipe blog and would love to have an archive page that displays his recipes broken up by broad subject areas (read: categories) and then have the recipes ...
0
votes
1answer
474 views
how to show all post with its contents
i have "favorite-film-video-songs-super-scene-climax" category and i want to show all of the post with contents(which is youtube video) for every post.
in below link i want to show all post with ...
0
votes
1answer
2k views
Show all posts in category
I am trying to show all posts in each category. I've been searching around and it seems I need to have either the category slug or term_id to do so, like the code below.
<?php ...
0
votes
2answers
179 views
Integrating Custom Post Types into regular Posts archive [closed]
I've gone into my archive.php file and made some adjustments to incorporate my custom post type. Here's the code I've added BEFORE THE LOOP.
global $query_string;
parse_str( $query_string, $args );
...
1
vote
0answers
93 views
Category archive leads to me 404 page? [closed]
I’ve category named “Golf Swing Trainers”, with the slug “golf-swing-trainers”.When I click this category it leads to me to 404 page.
But if, I change the slug into anything it works fine….
...
0
votes
1answer
221 views
Force WordPress to NOT display the manual excerpt
I'm forced to use manual excerpts on a number of my posts to integrate them with a shortcode plugin. However, this is interfering with how they're being displayed on an archive page (using a page ...
0
votes
2answers
835 views
How to disable monthly archive
Is there a way to disable archives pages, specifically monthly archives?
1
vote
1answer
101 views
if there is only one post in the category, directly open
I have a few categories.
in each of them, I have only one post.
by clicking on a category, I have to click on that single post to enter.
I wish, by clicking on the category, enter directly in that ...
1
vote
1answer
64 views
How to create an archive page (with links) for a date range?
Is there a plugin which can create an Archive page for a limited date range?
Thanks.
1
vote
2answers
100 views
Get link to a specific template file [closed]
I was planning on creating a custom "Archives" template to create a detailed Archives page for my blog, including lists of posts by category, tag, date and author. Rather than use a static link ...
0
votes
2answers
387 views
How to have two different versions of a tag/category/taxonomy archive page?
I have a site that has two different bodies of content: more formal content (using various different custom post types) and a blog (using a blog post type). These two different bodies of content use ...
1
vote
1answer
2k views
Are Custom Taxonomy Templates Possible?
I am trying to have some information specific to a taxonomy term appear above that taxonomy's archive list.
Example: Taxonomy is 'Sports', with football, soccer, and baseball being terms within 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.
1
vote
2answers
257 views
Create a month by month archive of pages (not posts)
Is it possible to create a month by month archive of pages? I know it can be done with posts but I want to do it with pages.
I want it to take the date the page was published so if the page was ...
1
vote
2answers
185 views
How can I get this request to use the Custom Post Type page template instead?
I read the answer for this post which says you can do something like this:
http://example.com?post_type=car&color=red
When viewing $wp_query everything seems to be working fine. That is, I'm ...
2
votes
3answers
373 views
Creating archive pages for children categories
Example:
video cat id = 4
video cat child category id's = 7,8,9
news cat id = 5
news cat child category id's = 11,12,13
I wanna display choosen categories ( like video and news ) in the different ...
0
votes
1answer
273 views
Can I output a custom taxonomy as a submenu in the site navigation menu?
I'm building a WP 3.2 site with a couple of custom post types and taxonomies. I'm calling one of these custom post types programs, and its associated taxonomy is called topics.
I'd like to add an ...
0
votes
1answer
244 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
3answers
2k views
How to disable pagination (next/previous links) on post type archive?
How can I remove the next and previous links in a custom post type archive page, but only for that post type?
I know I could wrap any function in if ( get_post_type($post) == 'myposttype' ) {} but I ...
0
votes
1answer
206 views
Limit archive widget results
Is there a way to limit the amount of months shown in the Archive widget? I don't want to use a drop-down list (I can manually add a drop down in my footer so people can get the full archive). I'm ...
0
votes
1answer
337 views
is_archive() returns false on the archives page
I've followed the official documentation to create my archives page: http://codex.wordpress.org/Creating_an_Archive_Index
It works fine exept that "is_archive() returns false when I'm viewing this ...
2
votes
3answers
3k views
Custom post type pagination 404 fix?
Been trying to get this working all day but haven't had any luck...
I have a custom post type called 'news' and an archive template (archive-news.php), here I'd like to show 2 posts with pagination, ...
1
vote
0answers
314 views
Date archive shooting 404 when months and days are quarried [closed]
I know you guys have seen hundreds if not thousands of 404 questions.
I assure you I have done everything in my power.
1. updates permalinks
2. using /%post_id%/%postname%/ for structure
3. have ...
2
votes
1answer
519 views
Using widget logic I want to show only a widget on the archive page if there are no posts
I have a custom post type with it's own taxonomy and I need to display a widget when on a category archive that is ONLY displayed when there are no posts. Currently I'm using this:
is_tax( 'genre' ) ...
3
votes
2answers
2k views
Custom Post Type Archive Page: Set Posts Per Page, Paginate
I have a custom post type called video. Would like to paginate its archive page, showing only 3 posts on each page.
There is also a custom loop on the archive page that outputs all the video posts ...
-1
votes
1answer
164 views
Add author section on Author archive posts
I was looking at the section where you click on the author name on the homepage posts.
and it says the Archive posts from xxxx authors
so I thought of that while ago I found that some website has ...
1
vote
1answer
324 views
Customize category page for different custom taxonomies
What I'm working on are the pages that you go to after clicking on a custom taxonomy on the front-end. I'm to the point where I've duplicated category.php, renamed it taxonomy-tr_property_region.php ...
6
votes
3answers
502 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', ...
1
vote
1answer
868 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 ...
1
vote
1answer
101 views
Page is displaying blog archives
I've been playing around with the jquery plugin Fancybox on this page, but for some reason since making a few changes my page seems to be displaying blog archives rather than the normal content it ...
2
votes
1answer
552 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 ...
2
votes
2answers
448 views
Post Format Archive template name for theme folder?
What should I call the archive file for a post format? Ex archive-gallery.php? (doesn't work)
I would like to create a list of all the gallery formats with a preview and some custom taxonomies thrown ...
0
votes
2answers
1k views
Custom Permalinks for Custom post Type Archives?
I know that WP 3.1 has added support for archives for custom post types but is there any way to customize the permalinks for them?