A page showing more than one post in the main loop.

learn more… | top users | synonyms (1)

0
votes
1answer
99 views

Adding archive years to my menu

I'm Wordpress newbie and despite of reading many articles, I'm able to put archive years to my main menu. Menu contains pages and I need to add an archive. My current menu: - Home (page) - About (...
0
votes
1answer
22 views

Archive - Show Video from First Post

I am relatively new to developing in WordPress. The way my posts are structured is the post title with a video underneath followed by text. The videos supplied by my client are in JavaScript tags. ...
0
votes
0answers
18 views

Disable archiving of old posts?

I need to disable archiving. We want to have all posts, no matter how old, remain in the roll with the newer posts even if you have to page back to get to them. I've been searching, and most of what ...
0
votes
0answers
54 views

Way to add archives as a menu item?

Is it possible to add an Archives dropdown -- like the Archives widget -- as a menu item in Menus?
0
votes
0answers
16 views

Way to filter hundreds of posts on a paginated archive page?

I have a client who wants to filter subcategory posts on a category archive page, which I can handle, but there are hundreds of posts. It's just the featured image and title, but even so it would have ...
0
votes
0answers
73 views

Change plugin's has_archive = true to false?

When a plugin registers a post type and sets has_archive to true, is there a way to change it to be false? I don't want the plugin's post type to have an archive, but can't figure out how to turn it ...
1
vote
1answer
153 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 "February ...
0
votes
0answers
75 views

How to create a custom archive by year, month, week

I have been searching for something that will do what I need, but have not found it. What I'd like to do is create an archive page that looks like this: 2015  October    ...
1
vote
1answer
88 views

From where is archive.php getting its posts?

My archive.php starts like this: get_header(); ?> <?php if( have_posts() ): ?> <div id="container" class="portfolio-wrapper"> <?php while( ...
0
votes
1answer
827 views

Custom post type posts don't show in archive widget

I have a custom post type called 'Podcasts' but none of the posts are showing in the archive widget. Only the main query (blog posts) are being shown. I've tried adding this code below to include the ...
2
votes
1answer
1k 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 ...
0
votes
0answers
52 views

Index.php Not Showing Custom Posts / Terms

I have my index.php page set up and is displaying my posts page as well as category archive pages without any issues. The problem however, is trying to display posts for custom taxonomy archives. The ...
0
votes
1answer
54 views

Echo taxonomy name - second level

I have the following taxonomy: Location: Province --City ----Suburb Province --City ----Suburb How can I echo the names of "Suburb" (second level) on an archive page? So, for example: Location: ...
0
votes
1answer
78 views

Current author archive in navigation menu

I want logged-in user see her/his own author archive page link in top navigation menu,say (a link to a list of all her/his posts). What I achieved so far is this: function my_nav_menu_author_link( $...
0
votes
0answers
75 views

Custom post type pagination page 2 404 error

Sorry to repost this but I haven't found a solution to my problem. I registered a custom post type instructor-emails and when I try to make the archive one post per page, the other pages return a 404 ...
0
votes
1answer
52 views

Make archive page show up in search results?

I'm trying to get the archive page of a category show up in the search results. I've developed the following setup. A category is a store, the archive page is the store's main page. Every store has ...
-1
votes
1answer
138 views

Custom archives page by month and year - nesting problem

I'm attempting to add a custom archives page within wordpress, outputting a complete list of archives by year and month. The code below works, more or less, but a html validator outputs errors saying ...
1
vote
0answers
217 views

change default post archive page link

I can't figure how to change the default post archive link. I've got few custom post types (for instance video_news, slug video), if I type www.blogname.com/video I get the archive.php. And every ...
0
votes
1answer
37 views

Get archive post type name

I want to make function, which gets me a post type slug (or object - doesn't matter) of post type displaying in Archive page, or even on archive pages of its taxonomies. Is it possible? I have this ...
0
votes
2answers
41 views

Is there a way to multiply archive loop results sequentially?

I am trying to make my own version of this I've implemented bootstrap grid in my attempt. I'm very close, but the <div class="row"> being looped is causing problems. I want to just be able to ...
0
votes
0answers
96 views

date archive future posts

Im using cpt for events and i need to display them in a calendar. most of the events are future. i managed to query the right ones by post_status at the archive, but I need to do the same at the ...
0
votes
0answers
11 views

wrapping post count with <!— posts -->

I need to display number of posts on my blog, but the post number needs to have a <!-- posts --> before and after it (instruction from an antenna site I'm truing to join). I have found code ...
2
votes
4answers
5k views

How do I remove unwanted pages like archive, search, etc.?

By default WordPress pushes out a whole array of pages I don’t want or need - archive, author, blog, monthly, recent posts, categories, comments, attachment, taxenomies, search, search results, and ...
0
votes
0answers
380 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
188 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 taxonomy-...
0
votes
0answers
39 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 ...
0
votes
0answers
29 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
33 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
12 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
4answers
127 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 ...
4
votes
2answers
1k views

Post Format Archive template name for theme folder?

What should I call the archive file for a post format? Ex archive-gallery.php? (doesn't work) I would like to create a list of all the gallery formats with a preview and some custom taxonomies thrown ...
0
votes
2answers
90 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
2answers
346 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
2k 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
vote
0answers
30 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 ...
1
vote
1answer
96 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
100 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 ...
0
votes
0answers
39 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
10 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 ...
0
votes
2answers
983 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
52 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
31 views

Return the name of the post type

I have this in the archive.php file of my theme: <?php else : ?> <h1 class="archive-title"><?php printf( __( get_post_type() ) ); ?></h1> <?php endif; ?> And it ...
0
votes
1answer
272 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 ...
1
vote
0answers
40 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 ...
2
votes
2answers
2k 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," ...
0
votes
0answers
34 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
33 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 yoursite.com/...
0
votes
1answer
903 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
3k views

Regex problem in an add_rewrite_rule

I'm working on a category page for a custom post type called articles in WP 3.1, and I'm having some trouble with extracting the page number. The url: /articles/category/background/ Currently, what ...