The tag has no wiki summary.

learn more… | top users | synonyms (1)

0
votes
1answer
387 views

/tag/tag_name/page/2 gives a 404 error

I created my own template for list of entries for certain tag (tag.php), It will shows up 10 entries, and with Previous & Next link. <?php $paged = get_query_var('paged') ? ...
0
votes
1answer
18 views

Wordpress archives in header -necessary?

I just had a look at my source code and found that at the very beginning there's this really long list of archives. I haven't seen this on other blogs: <link rel="pingback" ...
0
votes
0answers
17 views

is_archive() not working on selected “Posts page”

I selected a page called "Actualités" in Dashboard > Settings > Reading > Posts page. Wordpress does not use archive.php when I load this page, but index.php. So I try to use is_archive() ...
0
votes
1answer
372 views

Create template for taxonomy results limited by Custom Post Type

I've got a Custom Post Type with a Custom Taxonomy set up. So how do I create an archive template to display posts from that CPT, limited by taxonomy? Here's the deal: The CPT is called Shows. Each ...
0
votes
1answer
371 views

Archive with months of current year only

I'm trying to figure out how to get the following archive navigation: JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC 2012 | 2014 Thus, a list with the months of the current or selected year ...
0
votes
3answers
315 views

Remove category from query (show all posts in archive.php) pre_get_posts()

I am using pre_get_posts() to allow all posts to be displayed on any category archive. This is because I will provide a javascript sorting and filtering method using isotope.js. Any category page will ...
0
votes
1answer
20 views

Archive page if else not working for post_excerpt and post_content

I want to show the excerpt from a post only if it exists. If it does not I want to show an excerpt of the content text of the post. Here is what I came up with: <?php $my_excerpt = ...
0
votes
2answers
25 views

Creating attachments archive in tags and categories

Per this question (How to create an attachments archive with working pagination?), I've been using the following function to have archive pages display attachments as well as pages and posts. It was ...
0
votes
1answer
1k views

Custom post type archive page pagination

I have set up an archive page for my custom post type reference, where I use a query to get all posts of type reference. This works, but when I try to paginate the result, it doesn't work. Right now, ...
0
votes
0answers
34 views

Custom Taxonomy Term Archive Page Template that Filters 2 or more Taxonomies

For a local directory, i have a 'businesses' CPT with 2 taxonomies - 'location' and 'type'. I am trying to figure out the best way to create taxonomy term archive pages such as: ...
0
votes
0answers
17 views

Customised Page from archive-product.php

How can I show on a template customised that uses the archive-product.php code only products from a category? I am using the same code because I need display on some pages some products with the sort ...
2
votes
1answer
413 views

How can I get archives for specific category without category_base in the url?

I'm using this code to get archives for a specific category: function extend_date_archives_add_rewrite_rules($wp_rewrite){ $rules = array(); $structures = array( ...
1
vote
0answers
41 views

Pagination in relation to archive.php

A small problem here, I just don't know how to change this because I'm a self taught newbie. I made a child-theme from the simone-theme with a static front-page. To it I have the archive.php as the ...
0
votes
1answer
391 views

Load new Posts on Scroll on Page

See this reference site: http://alwaysjudging.com/archive/ It's loading new posts on scroll down, similar to Infinte Scroll plugin. (But I'm unable to get the Jetpack Infinite Scroll plugin to work on ...
0
votes
1answer
355 views

Category specific months list in sidebar.php

What have made me pulling my hair apart for while, how to output category specific month list. I've been searching for the same problem and solution cannot find any lucky so far... Anyway, I have two ...
0
votes
2answers
1k views

How can I use “getarchives_where” to get monthly archives for static pages?

I would like to get monthly archives for static pages. I tried to use the next code: add_filter('getarchives_where','my_archives_filter'); function my_archives_filter($where_clause) { return "WHERE ...
-1
votes
2answers
50 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
23 views

Archive pagination not working

I am trying to add pagination for my Archive. I want to show 12 posts per page and then show the 'next' / 'previous' buttons. When I manually change the value of the $paged variable, the 1 into a 2 ...
0
votes
2answers
347 views

Menu Disappears on Category Pages

I have a site whose navigation disappears on category pages for posts in the ‘post’ post type, but not for posts in any of my custom post types. The ‘post’ post type and post of the custom post types ...
4
votes
2answers
649 views

Create permalink structure for one taxonomy archive per custom post type

So, I've been going crazy trying to figure this out. Essentially, I've created two custom post types, 'the_case_study' and 'the_video', with respective slugs 'case-studies' and 'videos'. I've also ...
0
votes
2answers
534 views

How to show monthly archive posts?

my custom archives page is : <?php get_header(); print ('<div class="row">'); $archi = wp_get_archives('echo=0'); $archi = explode( '</li>' , $archi ); $archi_count = ...
3
votes
1answer
1k views

Custom post types - Use post_id in permalink structure when using has_archive => true

I recently asked this question Custom post types - Use post_id in permalink structure and solved it but as I have enabled 'has_archive' => true the solution given no longer works. Let me explain: ...
0
votes
0answers
10 views

Category page filterable by year and month

One of the requirements for a wordpress site I'm working on is to have a category page that can be filtered by year and month. For example: mysite.com/category/dogs/year/2015/month/02 This will ...
0
votes
1answer
45 views

Get archives as array

I'm looking for a way to get the values returned from wp_get_archives as an array, similar to get_categories. I need to do this to modify the post counters to use - [#] instead of (#). See my current ...
0
votes
1answer
21 views

Creating a Taxonomy Page [duplicate]

I am having a hard time wrapping my head around the way to set up a taxonomy template page. My goal is to create a taxonomy archive of a custom taxonomy I created. The page would only need to contain ...
-1
votes
1answer
26 views

Show monthly or daily archives

My code is this: #http://localhost/wordpress/2015/04/01 if (is_day()) { } //Prints January, April, 2015 #http://localhost/wordpress/2015/04/ if (is_month()) { echo single_month_title(' '); ...
0
votes
0answers
10 views

Possible Bug: Archive

I just created a page called archive for some txt files and it gave me the default perm url of archive, which under normal conditions would be fine. However, this automatically then defaults to the ...
0
votes
2answers
28 views

Set order acs and no paging for archive page

My code theme archive.php is <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php /* Include the Post-Format-specific template for the content. * If you ...
0
votes
0answers
16 views

Show posts from specific categories in a set page and some cosmetic modifications

So I'm trying to make a gallery-site for a friend's art as a hobby/learning project, and so far I've chosen a theme that I liked and modified it to fit the content I wanted to upload. But ...
0
votes
1answer
22 views

How to display post in custom file not in archive file?

I create file content-expertises.php and display my category list. Now, When I click one my category name, it is redirect in category.php file not my custom created file like category-expertise.php. ...
0
votes
0answers
19 views

Setting default thumbnail when posting a link to archive page

Is there a way to set a default thumbnail for archive pages when posting a link, ie: on someone's FaceBook wall? For example, posting a link to a FaceBook wall will show up as: [thumbnail] Link and ...
0
votes
4answers
6k views

get term archive url / link

I created custom post types & custom taxonomies for these. Example: actors (taxonomy) for movies (post type). Now I want to show up in my widget some terms and a more link for the actors terms ...
0
votes
1answer
1k 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
18 views

Modify loop output for a specific list of categories

I'm trying to modify the output of a loop on an archive page for a specific list of categories. Normally this loop outputs the Title, Author, Date and does so for every post in that given category. I ...
1
vote
1answer
37 views

Can't select blog month within archive category

I'm using Wordpress 4.1.1. I have come across a problem with my website archives. If I set the permalinks to default I can click on a category and then click on the date on the sidebar within this ...
0
votes
1answer
117 views

Archive page…limiting posts per page

So what I have done is created a custom post type 'testimonials' and set the "has archive" option to "true" and have a PHP template file named "archive-testimonials.php". What I wan't to do is limit ...
0
votes
0answers
16 views

the_post_thumbnail attached to wrong post in archive

I'm using this code to get the image from post_thumbnail and displaying it as a background, however, once I place it in the archive page, I get a strange behavior: thumbnail for post 1 is empty, then ...
0
votes
1answer
28 views

How to display term in archive page?

I want to display 'state' in my custom post type 'job' Archive page. Now my archive page only have title and excerpt. Can you tell me how to modify this 'content-job.php file? p.s. My post type is ...
0
votes
1answer
37 views

How to display data in archive page?

I have a custom post type 'job'. I created a archive-job.php . How can I display 'post date', 'city', 'state' in my archive-job.php page? Currently, my archive-job.php page displays a list of jobs ...
0
votes
1answer
29 views

Custom Post Type Archive Pagination

I've set up a template called archive-gallery.php, and I have pagination working, however, the query is ignoring my posts_per_page value and using the value that is in Settings > Reading called ...
0
votes
1answer
42 views

Custom Post type archives / categories give 404

I have a client that wants a blog, a press section, and a "More Posts" section for feel good, community service type of posts. I used the standard post type for the blog, and everything works fine. I ...
1
vote
1answer
611 views

Remove “Category:”, “Tag:”, “Author:” from the_archive_title

I have the following code in my theme's archive.php: <?php the_archive_title( '<h1 class="page-title">', '</h1>' ); ?> This gives me titles like "Category: Russia", "Tag: ...
3
votes
3answers
228 views

Filter for “get_post_type_archive_link()”

I tried to find filters or a hook to modify link returned by this function get_post_type_archive_link() I have gone through most of the documentation. I'm not sure it's not there or I'm not able to ...
0
votes
1answer
84 views

Count posts for each year

I'm using the following code to list all years from my blog, I guess we can call it an archive. <?php $years = $wpdb->get_col("SELECT DISTINCT YEAR(post_date) FROM $wpdb->posts ORDER BY ...
0
votes
0answers
46 views

Creating an archive page listing external data

I am working on a plugin that displays external data, within WordPress. I am attempting to create two pages. A listing/archive page, and a detail page. Example: /cars/ List all cars /cars/abc/ ...
0
votes
0answers
42 views

Taxonomy Archive page extend with children pages

I am having a custom post type named doctors. Doctors have some custom taxonomies like speciality,area and insurance. I want to combine the taxonomies so I can create the following combinationsQ ...
1
vote
0answers
75 views

Default 'post' post type archive slug?

I have a wordpress site, which has a front-page.php rendering a custom front page, so that this template will show no matter if WP admin settings is set to static page or show posts. The default ...
0
votes
0answers
19 views

Permalinks for categories…making sure that you get the right link in a Category Archive

I recently completely a site with a lot of categories and sub-categories. And in many cases, a post might go in multiple categories. Of course, I know how to do that by simply checking off multiple ...
-1
votes
1answer
40 views

Strip category base from URL?

Where I Place This Code Or How Can I Use This? function wpa_alter_cat_links( $termlink, $term, $taxonomy ){ if( 'category' != $taxonomy ) return $termlink; return str_replace( '/category', ...
0
votes
0answers
19 views

Separate blog archives by category

I have two categories for the blog posts on my site, lets call them A and B. I want to add an archive widget (by month) to the right sidebar that only uses category A posts and only shows category A ...