The tag has no usage guidance.

learn more… | top users | synonyms (1)

0
votes
0answers
9 views

How to create a category filter on custom archive template?

I am trying to filter posts by category on a custom archive / template page. My template page currently has a custom query which displays posts from four specific categories. Then I have a select ...
0
votes
1answer
24 views

Custom Taxonomy Archive Page for Parents AND Children?

I have a custom taxonomy called Product Category, which has a range of parent categories, then each parent one has subsequent child categories. Is it possible for the archive page i/e ...
0
votes
0answers
5 views

Catalog/Archive page products and adding weight choice per product-all items are added to cart

I am using the following code to create a choice of quantity on my catalog/archive page with over 40 products. It looks close to what I try to achieve. Unfortunately, when I change 1 item, the cart ...
-1
votes
0answers
21 views

How to show posts ONLY in SUBcategories using wordpress?

use wordpress and I want my posts be shown only in my subcategories. How can I do that? Right now my Raven posts are being shown under Birds as well. But I only want them to be shown under ...
0
votes
0answers
17 views

Category Archive Permalinks

So my blog has been running well since last time i asked a question here. But now, i've got another question, i'm having problem with the category archives permalinks So my category tree looks like ...
0
votes
1answer
14 views

Missing content on author archive page

I got problem when I deal with the 'author archives' pages. Initially I used default 'archives.php' from my theme. Then I add a 'author.php' page, tested on my local machine, it was ok to show the ...
0
votes
0answers
8 views

Show a full list of writers articles in their archives

The writers archives are only displaying articles for the current month. Meaning, every article they've done before this month isn't showing. :( Its says "show more" but nothing opens. This is causing ...
0
votes
2answers
57 views

How do I visit archive-post.php?

I have a simple file with the loop in it to get all posts called archive-post.php, but I'm not sure how I get to it in the URL? http://www.examples.com/post/ gives me a 404 How can I see the archive ...
0
votes
2answers
31 views

How to get related category/categories in WordPress archive page

I am using WooCommerce in WordPress. I have few categories of products like these, Example: Product 1 Category (//parent) -- Category 1 -- Category 2 -- Category 3 -- Category 4 Product 2 Category ...
0
votes
0answers
9 views

Custom post type archive page thinks I'm not logged in

I have created some custom post types using the Types plugin, and created their archive pages by copying my theme's archive.php and renaming it archive-{post type slug}.php. When I view these archive ...
0
votes
0answers
24 views

How to conditionally check for author archive when is_author() fails to work because the author has no posts

I am using the author archive to output user profiles, however the is_author() function only works if the author has a post. If I visit an author archive page directly IE: /author/author-11, it has ...
1
vote
1answer
52 views

Display posts from only one post form in custom query and exclude in main query

I am trying to first display four posts with post-format-aside (all assigned to current tag) and then display the "real" archive (exclude post-format-aside) for the specific tag. Right now I am using ...
0
votes
0answers
27 views

Category archives

According to the WordPress docs, to show a Category archive you simply need to create a file with the right file name i.e. category-slug.php category-ID.php category.php archive.php However what ...
0
votes
0answers
7 views

Rewrite Rules and Archives

I have a URL that looks like this http://localhost/mysite/publications/2015/ and using the Rewrite Rules Inspector plugin released by WordPress I get the following 2 matches for that URL: ...
0
votes
1answer
9 views

Permalinks - Archives

The WordPress docs say: WordPress offers you the ability to create a custom URL structure for your permalinks and archives. https://codex.wordpress.org/Settings_Permalinks_Screen I see how this ...
-1
votes
2answers
54 views

How can I get the ID for an archive page? [closed]

I have woocommerce page for my products that is treated like an archive page. I need to get the ID for the archive page but obviously if I use $post->ID or get_the_id(), etc. I get the id for the ...
0
votes
1answer
35 views

Make tag archive display post are ordered by post format

I would like to set up an archive page for tags where posts are displayed separated depending on post format, first post-format-aside then an archive with all posts except the posts already displayed, ...
0
votes
1answer
46 views

Change title in head on Archive page

I'm having problems with figuring out how I can change the title on my archives pages. I now have a title like this: <title>Jobs Archive - The Company</title> But I would like to have a ...
0
votes
4answers
76 views

How can I use archive-{post_type}.php theme template?

I've got a staff_member custom post type, with 'has_archive' => true. I've got an archive-staff_member.php template, with /* Template Name: Staff */ In backoffice, to add it to the nav menu, I ...
0
votes
0answers
22 views

Get X posts for all post types on Taxonomy term archive

I'm working on a tabbed archive page for taxonomy terms. Ultimately, I want each tab to show the 10 most recent posts for an individual post type with a "see all" link at the bottom of the tab that ...
0
votes
1answer
26 views

Add hour to archive link?

I have searched about this on internet but hopeless. The default of archive link is yoursite.com/year/month/day . My site is about news so i want to add hour to archive link to become ...
1
vote
0answers
29 views

Use “archive” as slug for custom post type

I need to have a custom post type slug and its associated taxonomy's slug to have value "archive". Any other value is ok, I've tested it, so there is no problem with the code per se. I guess the path ...
0
votes
1answer
22 views

Get current title of archive.php

I want to get current title at file archive.php My code : if ( is_category() ){ echo "CATEGORY"; } else if( is_tag() ){ echo "TAGS"; } else if( is_author() ){ echo "AUTHOR"; } else ...
0
votes
1answer
37 views

Rewriting archive page slug to be different than custom post type slug

I am having trouble changing the slug of my archive page. The goal is to create a page that can be edited from the back end of WP with the slug 'speakers', but that has already been taken by the ...
0
votes
1answer
42 views

Dynamic category name in query post

I want to make the following query_posts to use the current page's category name. For example, the user is located at: examplesite.com/category/apples/, and i want to use "apples" and for a different ...
0
votes
0answers
31 views

CPT archive drop down list

after adding the function from here i try <select name=\"archive-dropdown\" onChange='document.location.href=this.options[this.selectedIndex].value;'> <option value=\"\"><?php echo ...
0
votes
1answer
22 views

How to set default archive image without overriding first attached image? [closed]

I have hit a wall. I have archive pages with some posts that have featured images which display fine. Some posts don't have featured images but the first attached image displays. Some posts have no ...
0
votes
0answers
10 views

Add author archives to Wordpress Appearance Menus Screen?

I am trying to figure out how to add a list of all blog authors to the Appearance Menus screen, so they can be added to menus with the same functionality as Pages and Posts, etc. (Not custom links.) ...
0
votes
2answers
87 views

Proper way of making custom post type landing page or archive page

I always run into an issue with creating archive or landing pages for custom post types and wanted to know how others handle this. If I want to have a landing page for a custom post type, however I ...
0
votes
1answer
40 views

archive per year with monthly

I have an archive that shows all the post on monthly now i want is to group them per year like 2015 Jan Feb March 2014 April May I'm using this code. <?php wp_get_archives( array( 'type' ...
0
votes
1answer
49 views

next and previous year month and day for archive page

is there php code for next and previous year,month,day link in archive page i just need something like that <-previous [year] next-> <-previous [month] next-> <-previous [day] ...
0
votes
0answers
25 views

How to get a single archive page to display my various custom post types respective terms?

Is there a way to make a single archive show the respective terms/categories of multiple custom post types ? So far i have been able to make use of a single archive.php to display my various custom ...
0
votes
1answer
27 views

Redirect or Prevent Viewing of Custom Taxonomy's Archives?

I've contacted the theme developer but never got a response back... I'm also curious to see if anyone else has done this with any theme. To give you a live example: ...
0
votes
0answers
20 views

Add Archive suffix on permalink structure

My permalink structure is /%category%/%postname%/ Where the posts can have one category and one subcategory, having its permalink: /category/subcategory/postname The homepage of all the ...
0
votes
0answers
65 views

Archive.php won't show posts

Hey there:) I can't figure out why my posts is not showing up in my archive.php page(news). I wrote this code in archive.php <?php /** * @package copenhell */ get_header(); ?> <div ...
1
vote
2answers
97 views

“Sticky” posts for each category (archive.php)

I need to have the ability to have Sticky posts for each category. The simplest way to do this appeared to be to just create two loops on the page. This is what I wrote: <?php //Custom "sticky" ...
0
votes
0answers
20 views

Weird slug in archives permalink

All my wordpress installs (and some others, as I see) have the archive based index in the following format http://example.com/date/2015/06/02. But most current installs out there display it as just ...
0
votes
0answers
79 views

Change “Select Month” name within Archive dropdown widget

I want to change the Placeholder for the Archive Widget when in dropdown format. As its set to show by month i tried to change to month label. I currently have : function ...
0
votes
0answers
16 views

Mixing ads in with product listings in wooommerce

Thank you in advance for any help on this. I've been searching and I'm having trouble finding a solution. I'd like to add some jpg's in with my products that are listed on the category page. For ...
0
votes
1answer
42 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
39 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
41 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
105 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
106 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
34 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
91 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
49 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
32 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
118 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
25 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 ...