The tag has no wiki summary.

learn more… | top users | synonyms (1)

0
votes
1answer
19 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
18 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
24 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
26 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
0answers
37 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
18 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 ...
1
vote
0answers
42 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
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
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
47 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
28 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
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
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
20 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
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
38 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
130 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
30 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 ...
1
vote
1answer
658 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: ...
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 ...
3
votes
3answers
237 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
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
1answer
95 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
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
76 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 ...
0
votes
0answers
20 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 ...
-1
votes
1answer
41 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', ...
2
votes
1answer
321 views

Display only posts from referred category on date archive page

I am using wp_get_archive() in category.php. If I am on page of category=2 it should show my archives of only that category. However it is for all the categories. Following is the code for my ...
1
vote
2answers
122 views

Tag Archive for Custom-Post-Type Posts yielding 404 when permalinks set to postname

I have a custom post type "news_updates" which I have not given custom tags or categories. I have however created a normal tag (not attached to a custom post type), and assigned it to a particular ...
0
votes
1answer
119 views

Guest Author - How to display posts on /author/ archive page

I have used the Advanced Custom Fields plugin to create all the data elements for a company leadership directory page and management bio pages. On the site blog, management will not be posting ...
0
votes
0answers
49 views

Site loads very slow for archive custom post type page

I created a directory website which has a page that displays all the listings (1,005) This page takes VERY long to load. Is there any way to speed this up? Its using a custom post type listing. There ...
1
vote
0answers
37 views

How to use multiple archive templates for a taxonomy?

I have created a custom post type (product) with a taxonomy (brand). I need to have the basic archive pages (type A) and then custom ones (type B) to create a product comparison page which esentially ...
0
votes
1answer
28 views

Is it possible to return a specific tag archive/template as one of the search results?

Is it possible to return a specific tag archive/template as one of the search results? For example, let's say my site has the tag: Summer And my site has the pages: Summer picnicking Fun, fun, ...
0
votes
1answer
159 views

Custom archive page based on array of categories and tags

I'm looking to create custom archive page based on passed arrays which contains categories and tags, for an example: ...
0
votes
1answer
26 views

WordPress Archives Cause Looping

I am attempting to create an archives page that would have links to authors, categories, tags, etc. I would like it so that when the author, for example, is clicked, all their posts are displayed. ...
0
votes
1answer
194 views

How to Add Pages Under Custom Post Type URL Structure?

How can I add pages under the URL structure of a Custom Post Type? For example... If I had a Custom Post Type called "Knowledge Base" ... Located at: domain.com/knowledge-base/ ... and I wanted to ...
0
votes
0answers
14 views

Archive display on category base

I am developing a news epaper by implementing yumpu plugin and i used archive calender widget. I have some category like jhalak, devdhara etc. Every epaper is a single post for that specific ...
0
votes
1answer
40 views

List attachments of a page

I need to generate a list of attachments uploaded to a specific page (id=628). I thought this code was going to work, but it doesn't generate anything at all: <?php get_header(); ?> <div ...
1
vote
2answers
324 views

How to create archive page for taxonomy terms within custom post type

I am needing to create an archive page custom taxonomy terms that are within a custom post type. It's set up as CPT > Custom Taxonomy > Taxonomy Terms. I have a custom post type called "Projects," ...
1
vote
0answers
42 views

same slug for custom postype and page pagintion not working

I have created post type "news" and a page "news" so my url is like http://demoserver.com/testsite/news Here i use page template for news landing and i do not use archive.php page for post listing ...
1
vote
2answers
129 views

I want exclude the particular category in sidebar

In my sidebar i would like show archieves list month exclude 'banner' category post. Below codes are tried, but not work for me. <?php echo ...
-1
votes
1answer
78 views

Create monthly archive for parent category

Part of the website I'm working on is meant to function like a monthly magazine, with a few different departments. So I have 'Magazine' set as the parent category, and say 'Art' and 'Music' as child ...
0
votes
0answers
32 views

Keep same archive.php for post from archive?

I have create a new template for my archive ( using archive.php); however, when I click to the post from my archive list, it keep the same layout of the single_post, I'd like the post open from the ...