The tag has no wiki summary.

learn more… | top users | synonyms (1)

1
vote
0answers
45 views

Sorting a specific taxonomy by archive date using URL

OK, so I'm looking for a way to sort a specific taxonomy by archive date using the site URL. Say the custom taxonomy ("sort") value is "fruit" then then you would currently get all the posts marked ...
0
votes
2answers
803 views

Add multiple orderby with pre get posts

I am already using a small code to set default sort orderby a custom field called "Year" I need to add another orderby to also sort by "Post Title" in the same sort. Sort = Year-Customfield (DESC) ...
1
vote
1answer
29 views

Archive - same title for the first two posts

I created an archive page called archive.php Here I include header / footer and this code: <?php if (have_posts()) : while (have_posts()) : ?> <h1 class="entry-title"><a ...
2
votes
1answer
139 views

Category page only displaying the posts from a custom type

Situation I have two cpt: Projects Works In these two CPT I share the same taxonomy 'Category', and the same terms: Architecture Landscape Interior Design I have URLs like ...
0
votes
2answers
60 views

Create archives by author role

I have a site that will have some custom roles (capabilities), and I would like to have archives that list authors based on their role. authors.php list the profile of one author, but there is no ...
0
votes
2answers
898 views

How to get the custom post type from an archive page?

In my website I have three custom post types: scripts, scenes and plugins. When visiting the archive page of a single post type (i.e. by going to mysite.com/plugins) you correctly see all the posts of ...
1
vote
2answers
2k views

Sort results by name & asc order on Archive.php

I currently use the following code to list posts in Archive.php but I want the results to be ordered by name in ascending order, I have checked the codex but the answer isn't clear to me, how can I ...
2
votes
2answers
1k views

Include and Exclude Taxonomies From Archives & Feeds Using 'pre_get_posts'

What I am trying to do? My blog uses a custom taxonomy called edition with terms like us-canada (6), eu (7) and india (8) -- term slug (ID). I want to make sure that posts not assigned to any ...
0
votes
1answer
158 views

Apply custom taxonomy archive template to children

There is a slight problem that I cannot figure out by myself: I created a custom post type (tours) with custom taxonomy (tour categories). I have created a taxonomy-tour-categories.php to display an ...
0
votes
1answer
99 views

weekly archive for custom category

<?php $args = array( 'cat' => '2', ); ?> <?php wp_get_archives($args); ?> I pull out the custom category with the above codes, it works fine & shows up ...
0
votes
1answer
134 views

Overwriting TwentyTwelve template file with child theme template, but lower in the hierarchy

I've (I think) an interesting problem here. What I want to do is create a global archive page, with everything on it. Dates, authors, categories etc all on one page. I have a child theme, with ...
1
vote
2answers
116 views

Cache previous versions of website?

I'm working on a new site for a charity. They publish a printed magazine & we would like the website to always reflect the current issue of the magazine. So far I have a front page (home page) ...
0
votes
1answer
33 views

Find out in which kind of archive am I

in archive.php file, I want to know, which type of archive I i'm in. For example, if I i'm in archive for category Personal I'd like to be able to display it in header of the archive. Of course, I ...
0
votes
1answer
49 views

Tag Posts showing in wrong places

Am using a custom template (tag.php) to show posts related to tag. So when someone clicks on say tag ‘A’ then he/she gets redirected to my tag.php layout instead of default template for archives. I ...
0
votes
1answer
313 views

Create /archive page in Wordpress Theme

I'm trying to create a Wordpress theme, and I'm having a little difficulty with creating an easily accessible archives page. First off, I'm not referring just to the standard archive.php in the ...
0
votes
1answer
81 views

Assign CPT archive page attributes

I have a custom post type recipes which uses the archive-recipes.php template automatically. I have a Wordpress page called Top Recipes which is set to use the archive-recipes.php template in the ...
2
votes
3answers
192 views

How to show static placeholder when less post elements in archive page?

I'm doing an archive page for a theme that will contain only images thumbnails. The maximum amount of thumbnails that the page layout can contains is 12. So as query I would like to been able to get ...
2
votes
1answer
162 views

Archive dropdown styling not applied

I am trying to add a custom dropdown for archives but struggling with couple of mistakes that might be the reason why it doesn’t work. The CSS only gives my dropdown the width, not the other styles ...
0
votes
1answer
69 views

Use an archive as the parent of a page?

how can I solve the following problem? I have the category "Events" with the permalink www.myblog.com/events/ and of course single events like www.myblog.com/events/lets-party/. Now I want to add a ...
0
votes
1answer
44 views

How to make a list of posts displaying them 5 by 5 with a “next posts” link?

I have been googling for the past 2 hours and haven't been able to figure this out, mainly because I am missing the right terminology, in other words, I don't know what I want in "wordpress words". ...
2
votes
1answer
160 views

How to create tabled index of posts in a certain category

I have a tech blog, what I want to do is to create an index page for articles in a certain category. For example, I want all the articles under the category "WordPress BasiX" to be arranged in an ...
3
votes
2answers
3k 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
100 views

Stop header code from showing in category page?

Hi I'm using the code below to show different header images in my custom template archives. Only problem is that it is also showing the headers in the category templates. go to ...
0
votes
2answers
163 views

Creating 'posts page' loop based on the page itself

The setting Settings -> Reading -> Posts Page is set to my 'News' page, and the loop for the home.php template is populated with posts... great. However I want to also be able to create another ...
0
votes
2answers
489 views

Why is the custom taxonomy archive page redirecting me to a single post? [closed]

I have a custom taxonomy, artist, that is related to three custom post types: videos, posts and letters. I have an taxonomy-artist.php template that should display the archive for a given artist. ...
0
votes
2answers
857 views

How do I remove a category from a wordpress loop>

I have a question. I need to have, in my archive.php file, a exclusion of a specific category. given what I have now, how would I make that happen? Here is the code: <?php ...
0
votes
1answer
193 views

Wrap the “show_post_count” between div

How can I wrap the "show_post_count" between a div? (from the wp_get_archives()) Do I need to edit the function for that? Or could I do something like this with pseudo css? <div ...
0
votes
0answers
12 views

Split archive results in rows and columns [duplicate]

Possible Duplicate: How to mark every 3rd post I want to redesign my Archives template, so I want do display posts from archive in 3 columns and 6 rows. I have the following code: ...
0
votes
1answer
325 views

Change permalink structure for pagination only

I am using following functions to display pagination on archive pages of my site. <?php previous_posts_link('< Previous', $loop->max_num_pages); ?> <?php next_posts_link('More >', ...
2
votes
1answer
150 views

Custom post type with tags

My understanding is, that custom post types can share tags with the posts also. I have created tags and applied them to a blog post and a custom post type. Yet when I click on a tag it only returns ...
0
votes
1answer
55 views

How can i display in themplate file only a few post

How guys , i my archive themplate i have 3 tipe of themes: -poster -complex -simple How can i display a certain number of post for arhive themes: Ex: for my poster i want to display 24 posts(only ...
0
votes
1answer
292 views

Filter/Sort Post Form On Taxonomy page

I am trying to create a form on the taxonomy template that will be able to filter the posts the current user is viewing. I want to use a few drop downs and submit button to do so. My code looks like ...
1
vote
0answers
58 views

Advanced author permalinks

I'm trying to build permalink structure for author archives that would allow me to display different custom post types posts in 'subpages/subarchives' of author archive. So the idea is to change ...
1
vote
2answers
1k views

Using a different template per Custom Taxonomies for single term archive pages

I have 2 custom taxonomies, each with a number of terms: tax1 term1_1 term1_2 tax2 term2_1 term2_2 term2_3 I am trying to have each taxonomy usea different template file for each its ...
0
votes
1answer
95 views

How do I display the next 3 posts in the sidebar?

I'm building a simple "company news/press release" site. We'd like to display the latest five post excerpts on the home page with the next three post titles (six through eight) and a single "Archives" ...
0
votes
1answer
111 views

Query Custom Post Type and sort by year

How do I create a page template were I can query all the posts from the Custom Post Type - let's say - "project" and order the results by year, displaying the year value at the beginning of each group ...
0
votes
1answer
1k views

How do I make archives.php for one category only?

I have a basic archives.php file. I was trying to get it to display only posts from category 1. When I do query_posts('cat=1'), the URL is then ignored and all posts in category 1 are displayed. For ...
2
votes
2answers
1k views

How do you split multiple-column loop on category archive page?

I am creating a custom page template with multiple loop like this http://demos.gabfirethemes.com/advanced/category/football/ You can see there are posts split up into multiple columns: One featured ...
1
vote
1answer
597 views

Query post for 'selected category' in archive.php

I'm trying to figure out how to display a 'featured post' on a selected category archive. My website uses the category-based navigation for different types of posts (text only post-blog, and image ...
1
vote
2answers
170 views

Displaying Archives List

I'm displaying list or archives using <?php get_archives('monthly', '', 'html', '', '', FALSE); ?> and my list displays December 2012 November 2012 etc However I would like to format ...
0
votes
1answer
128 views

Set a hard-coded page-template (post-type-archive) as home/front-page of my wordpress blog?

under Settings->Reading I can set which page should appear immediately when visiting my site as "home-page". In my case I want the archive of my custom-post-type named "events" as home/front-page of ...
1
vote
0answers
213 views

Category archives with monthly pagination

How would I go about doing the following: I need to setup a prev/next type pagination where posts within a category archive are split into months. For example, if I navigate to the News category, I ...
0
votes
1answer
184 views

Insert code on specific taxonomy archives

On a woocommerce site, I am trying to insert a piece of code on all category pages. The code I am using is: function my_code() { if ( ! is_tax('product_cat') ) return; ?> <!-- my ...
0
votes
3answers
148 views

Custom post types not using archive structure

I've been banging my head against my iMac trying to figure out what's wrong. I've also trolled these archives and have tried the following things to fix: flush permalinks remove possibly conflicting ...
2
votes
3answers
583 views

Archive pages for posts based on their taxonomy?

Is it possible to display archive pages of posts based on their taxonomies, and an archive page of a term in that taxonomy?? For example, i have a site about beauty products, and i write a product ...
0
votes
1answer
130 views

Custom Post Type with archive page but no detail page

I want to have custom post type that have only title and archive page, but no detail page. Here is what custom post type code: add_action( 'init', 'register_cpt_trivia' ); function ...
1
vote
1answer
138 views

Category index featured image

I wish to set a featured/header image for each of my category archive pages, how would I go about doing this without hard coding each category into the theme? An example of the page is at ...
0
votes
1answer
72 views

Archive links don't work when clicked

I have archive links in my theme that get the archives for a specfic category ('blog) like so: <?php wp_get_archives('cat=6'); ?> When i click on the link for the archives is just loads the ...
2
votes
5answers
1k views

if in_category on archive.php

So I'm trying to do an if / else statement on an archive.php template. I setting up my archives using WP Smart archives reloaded (http://wordpress.org/extend/plugins/smart-archives-reloaded/) The ...
1
vote
1answer
209 views

Archiving annual festival site

I have a query regarding managing a wordpress setup, I am sure others have been in a similar situation and was wondering what would be the best solution. I manage an annual festival's website, each ...