The archives tag has no wiki summary.
0
votes
2answers
54 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 ...
0
votes
2answers
925 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 ...
0
votes
0answers
155 views
Simple Jquery custom post type archive slide toggle
Hi I'm not sure if we deal with jquery in this section but as it is wordpress related I will ask anyway.
I am currently have an custom post archive that displays all posts(li's) in a month(ul's). I ...
1
vote
2answers
278 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
0answers
55 views
Custom Post Type - FIlter by year, THEN by category
Although I don't necessarily believe this to be a good idea, the client has asked this of me.
It's cake to filter by category and then filter by year (as really it just adds "?y=2011" to the end of ...
13
votes
4answers
1k views
Show a different number of posts per page depending on context (e.g., homepage, search, archive)
In the Reading Settings, there is place to set the number of posts shown that affects the number of posts shown in all contexts. I'd like to show instead a certain number of posts on the homepage, and ...
0
votes
0answers
41 views
Archive by year and category
I would like to have a page to show all the posts with this structure:
2013
category A
Post 1
Post 2
Post 3
category B
Post 1
Post 2
Post 3
2012
category A
Post 1
Post 2
Post 3
category B
Post 1
...
0
votes
1answer
50 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
40 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
94 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
91 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
30 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
20 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
120 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
282 views
Filter post by using drop down menu [closed]
I was looking to filter post by user selection from a drop down menu on the front end; so that user selects from the list below:
'<form name="ll-filter" action="" method="post">
<select ...
0
votes
1answer
48 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
154 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
66 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
51 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 ...
1
vote
1answer
86 views
Disabling archives, search results, comments, etc?
I am working on a site that has only text articles, and I am not making use of comments, archives, trackbacks and other features.
How can I make so these pages show a 404 not found error? I am not ...
0
votes
1answer
32 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
109 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 ...
0
votes
1answer
44 views
Custom Post Type archive
Hey all first off im a WP newbie so go easy!
Ive been searching for a couple of days now to see if I can find the answer to this but cant get anything definitive.
I have a custom post type called ...
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
66 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
117 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
151 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
119 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
66 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
11 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
113 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 >', ...
0
votes
1answer
168 views
is_singular won't call my functions?
Hi i'm using this code to call for a different stylesheet for a single post type but the problem is, It won't call the stylesheet.
It's in header.php, i also tried placing it in single.php
<?php
...
0
votes
0answers
49 views
Why is my taxonomy archive content only visible to logged in users? [closed]
UPDATE: Resolved
A plugin called Press Permit was auto-filtering the content types. I checked some boxes and it magically started working.
I have a custom built taxonomy. When I view the archive ...
2
votes
1answer
82 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
34 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 ...
1
vote
1answer
83 views
Arrange and separate posts
On a particular archive page I've created, I'm listing a number of posts by post name and they're listed in alphabetical order. Is there away to have them separated even further?
As in all posts ...
0
votes
1answer
152 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
39 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
562 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
63 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
77 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
256 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 ...
1
vote
1answer
169 views
Archive listing of posts by publish year (multiple years)
I have an archive page showing all blog posts (in a specific category). With a growing number of posts, I want to separate these by publish year. For example (simplified), I'd like the following:
...
2
votes
2answers
696 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 ...
0
votes
1answer
58 views
wp_query monthnum parameter ignored [closed]
I'm dynamically building a query into a variable called $qstring and then executing it
When it looks like post_type=post&posts_per_page=4&order_by=modified&monthnum ...
1
vote
1answer
428 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
58 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
62 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
112 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
50 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 ...
