The tag has no wiki summary.

learn more… | top users | synonyms (1)

0
votes
1answer
84 views

Category archive in menu

I am looking for a solution to show the archives for a specific category in my main menu. The first level menu entry would show the label of the category, say "News Digest", without linking to ...
0
votes
2answers
266 views

Filtering WP_Query

I'm developing a site that uses a Artist custom post type and I need to query all posts of this type in a page template. I need to set the is_post_type_archive property to true too to filter this ...
0
votes
1answer
697 views

Get posts from a top category and group by child categories

I have a CPT Called "Membres" (members in English). So after that I created a category called "Membres" and his child categories. Parent category "Membres" - Subcategory1 (3 post inside) - ...
0
votes
1answer
80 views

Exclude a specific category link from archive / front page

I create posts that are used just to create an index item to show an existing post has been updated. The post I create 301 redirects to the updated post. I add these index posts to the category ...
1
vote
2answers
704 views

condition for only if is archive for default post type

In order to optimize my site for a bit more loading speed, I wanted to enqueue a couple of scripts only to the archives for default post type. A rough example is given below. function ...
1
vote
2answers
321 views

Tell wordpress to show a single page instead of an archive

So I have multiple custom parameters in the url, and at some point when the query reaches 3 parameters (e.g. ...
0
votes
2answers
541 views

Filter archive.php by custom meta

I"m trying to filter an archive page by custom meta query. I've tried using query_posts($args) prior to the loop, but it returns nothing. Any ideas? Here's what I have so far: <?php ...
0
votes
2answers
880 views

Post formats template

I would like to know what template wordpress uses to display post formats archive pages? What is parent template file that is used when there is no specified template file and what is specified ...
0
votes
1answer
32 views

How to change archieve frequency of the media file in uploads folder for wordpress blog

So far I can see my media file is divided into month and year as 2008/09 like directory. But I am getting concerned because I am currently hosting a community listing site that may incurr more than ...
0
votes
1answer
233 views

Wordpress category specific months list in sidebar.php

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

Getting Catategory / Taxonomy Description on Non-archive Pages

Can you pull in the description of a custom tax on pages other than the taxonomy-(custom-tax).php i.e on the home page you want to show the description of a custom tax. This works on the ...
0
votes
0answers
91 views

Orderby comment_count ignored if multiple orderby values

I'm trying to order my archive page by comment_count then title. add_action( 'pre_get_posts', 'my_change_sort_order'); function my_change_sort_order($query) { if (is_archive()) { ...
0
votes
3answers
468 views

List custom post type but redirects to home page

here is my problem. It's been around 2 hours that I try to have a page listing all projects (they are a Custom Post Type) so I'm trying to have an archive file named archive-projects.php but when I ...
0
votes
0answers
66 views

How can I set up the URL for a category archive for a custom post type?

I'm working on a site www.site.com that has an additional post type: project. In registering project, I've declared "taxonomies"=>array("category") so that I can categorize the essays. Works fine. ...
0
votes
1answer
43 views

Wordpress archives by custom field and date

I have a strange situation on my hand. I want to list my archives based on a custom field (numerical value) but also display something like a cover. We have specific posts in different categories ...
0
votes
1answer
57 views

Show Daily Archives after specific dates

I am currently showing a daily archive using the following <?php wp_get_archives('type=daily&limit=15'); ?> It shows all the older posts as daily archives. However, Is it possible to ...
0
votes
2answers
81 views

Why does my URL keep returning 404 error code?

I have a custom type on my wordpress site called 'movie'. If the user type this URL : http://mysite.com/1994, I would like to display all movies published in 1994. Unfortunately, I get a consistent ...
0
votes
1answer
707 views

Single.php Active Category Class

Currently by default (I believe) when you're on single.php, Wordpress doesn't add a "Active" class to the blog category you're viewing the single post in like it would for pages or if you're on the ...
0
votes
2answers
319 views

How to Change Author Posts URL

How can I display an authors archive by author id instead author slug like http://example.com/author/author_slug/ to http://example.com/author/123/
0
votes
1answer
264 views

What is archive.php used for?

Dumb Questions Ahead: If index.php and archive.php are practically the same thing, what's the point of having archive.php? When should I ever want to use archive.php over index.php? If I use ...
0
votes
2answers
39 views

Wordpress archive posts returns user to homepage

I am trying to add archives to a sidebar in my wordpress blog. I use: <?php wp_get_archives('cat=1'); ?> to get display the archives. I now see on the screen the past few months when I have ...
0
votes
1answer
63 views

Create custom archive page for individual authors which is separate from the author.php page

If this is a duplicate, I apologize. I have searched and searched with no luck. I have a custom author.php set which shows the most recent 10 posts (As it's set in the admin panel under General > ...
0
votes
1answer
263 views

Highlight current tag using get_tags()

I'm nearly there with this, but I need to highlight the current tag link/archive being viewed: <ul id="blog-tags"> <?php $tags = get_tags(); if ($tags) { ...
0
votes
1answer
423 views

how do I get the date in a date archive page

In archive.php, if it is a date archive, can I get the date using a function? Consider a url like this: myfirstsite/2013/08 - I want to get the 2013/08
0
votes
1answer
242 views

Show Secondary Sidebar on Category pages (archive)

My site has the following structure where one column is for the main content (articles) and the other one, on the right, is for the sidebar (primary sidebar). The theme allows me to change the layout ...
0
votes
1answer
184 views

pre_get_posts works in post type archive but not in single post

I have a custom post type "Scholars" that has an archive. I want to sort by a custom meta field called "year", I'm doing this with pre_get_posts: add_action('pre_get_posts', 'my_queries'); function ...
0
votes
0answers
69 views

'Blog Archive' suddenly appeared on custom post type; how to remove

I have all of a sudden started seeing Blog Archives Post navigation (as below) rather than every post in that custom post type. I changed something in the Wordpress SEO plugin which has since been ...
0
votes
1answer
33 views

Is each issue of a magazine site a static page

I want to create a monthly magazine style website. I can see the url for a month is something like this: www.magazine.com/mywebpage/2013/08 Suppose I want to create a custom page for each month, ...
0
votes
1answer
627 views

WordPress custom post type category pagination 404 Error

This problem is giving me a headache and I was wondering if anyone knew how to fix it. I have a custom post type called Review. Here is how it is defined: function codex_custom_init() { $args ...
0
votes
1answer
58 views

Custom archive pages without “the loop”

Is there a way that I could control the rendering of an archive page that uses my own loop? I'd like to group the posts by a custom taxonomy, then sort them by date.
-1
votes
1answer
209 views

Wordpress 3.6 - archive.php doesn't get triggered [closed]

I made a custom theme and just created an archive.php file. When I try to access http://localhost/wordpress/?m=201308 for example it just triggers my index.php template. The link was generated by ...
0
votes
1answer
199 views

Pagination issue in archive.php

I can´t get works fine the pagination in archives for wordpress when i want limite the posts by page , if i let pagination by default as 10 from backend i haven´t problems but if i use this no works ...
1
vote
1answer
106 views

Call different archive page based on post type

Ok, I have quite a few CPT's on my latest project. Most of the CPT's are only used to display metabox content linking to pdfs, etc. I looked around and couldn't find quite what I was looking for, ...
0
votes
1answer
44 views

Categories in custom post types

I'm having some custom post type but I want to add categories for it. Not for the URL(-structure) but for an archive page, which shows every category after each other. So the items are organized. ...
0
votes
1answer
144 views

Rebuilding a Site: How to Show Several Category Posts in Woo Framework Theme?

I am having a hard time managing a big site with 2000+ pages. Right now, I am restructuring the site architecture. So, for example, if there are categories like x, y, z... I want to put them under ...
0
votes
1answer
50 views

Function filter breaking tag archive menus

Ok, I'm setting up a site with a some CPT's. When creating posts under said CPT's, we added tags. When viewing the posts results after searching, tags were displayed, but upon clicking the archive ...
0
votes
2answers
76 views

Is it possible to remove the word “date” from archives?

I can't figure out how to remove the word "date from the permalink for yearly archives. For example: [http://localhost/wordpress/news/date/2012] On single news pages the permalink looks like this: ...
1
vote
1answer
395 views

Get post type from taxonomy or category page

This might be somewhat backward, but how can one get the post type being displayed on an archive page? Alternatively, how can one get the post type associated with a given taxonomy?
0
votes
1answer
58 views

Remove posts from two categories in Archive Page

From Archive Page I want to remove posts from couple of categories, as they have different style formats which will not look good with other category style formats.
-1
votes
2answers
145 views

query only direct child and sub-terms of a current term archive

i'm using woocommerce on my theme, and it comes with a proudct_cat term as a defualt catagory on the shop proudct. I need to show on every proudct_cat archive its direct child and the sub-tems, but ...
0
votes
1answer
141 views

2 loops in archive.php (one for each category)

I have a custom post type set up for a news blog on a site I'm building, the custom post type being blog consisting of 2 categories, blog-image-post ID=3 and blog-text-post ID=4. I want to loop each ...
0
votes
3answers
372 views

Force Wordpress to Show Pages Instead of Category

I am trying to create a SILO structure on one of my WordPress site. I have always checked this option on Yoast SEO plugin "Strip the category base (usually /category/) from the category URL." So my ...
0
votes
2answers
95 views

Archives and category of authors

Description of the problem: I should make a blog with, let's say 4 authors (may be more). The blog shoud have a page 'blog-page-1' (without sidebar) on which will be the last post of each author and ...
1
vote
2answers
140 views

orderby meta_value breaks taxonomy term archives

I have a People post type with a Person Type taxonomy (e.g. "Staff"). On the Person Type Term Archive pages, I want to sort by a "Sort Name" custom field. To do so, I'm using a pre_get_posts call: ...
1
vote
2answers
349 views

Preventing 404 error on empty date archive

On a date archive page when no posts exist (for that date) WordPress throws across to the 404 page. Is there a way to make WordPress continue to use the original archive instead of the 404. That way ...
0
votes
1answer
59 views

One post on frontpage and an archive page

I'm developing a theme using the underscores starter theme and I'd like to have a frontpage with just the last post and pagination, and then a separate page, with the "archive" slug, to show all posts ...
0
votes
1answer
856 views

How to have Multiple Archives Widgets, one archive widget per category (in a different page)?

Please read the whole question before assuming this question is repeated. After one day of trying plugins and tutorials, I am convinced that there is no straightforward method of achieving what I am ...
0
votes
1answer
300 views

how to show only particular category post in archive widgets

i want to display blog category month list in archive widgets. but i i can't figure out yet how. i have more category like review, gallery etc. normally show all month list in archive widgets but i ...
0
votes
2answers
97 views

Sorting past events by month

I have a site that lists upcoming events and past events. In my category-past-event.php template, this is how I've gotten past events appear in descending order (from most recent to oldest): ...
0
votes
2answers
130 views

Exclude 2 in 3 terms of A Taxonomy from all Archives

I have read this post: Include and Exclude Taxonomies From Archives & Feeds Using 'pre_get_posts' And then I have used that function to my theme. My Taxonomy (tinh-trang) had 3 term: ...