The tag has no wiki summary.

learn more… | top users | synonyms (1)

0
votes
2answers
42 views

Create a custom URL for blog archive

I'm playing around with a test site and I've set up a static page as home page. Now I want to make a menu item called Blog - with url example.com/blog/ - where I'll list the latest articles. I made a ...
0
votes
1answer
34 views

Pages, Custom Posts & Custom Taxonomy defining slug structure

I'm struggling to set up the structure of my wordpress site correctly so that the slugs, work correctly. The page & custom post setup works fine and is as follows: Archive for fruits (page): - ...
0
votes
1answer
25 views

Conditional statements based on custom meta value in category archives

Here's what I need to do. Insert a short Javascript in the footer using wp_footer. No problem there for single posts, I have this. add_action( 'wp_footer', 'prefix_wpfooter' ); function ...
0
votes
0answers
25 views

Create a link to a yearly archive of post for a custom post type?

I've got a custom post type, and I'm building an archives.php for it. I'd like the archive page to link to sub-pages. Each sub-page would list the CPT's by year. How can do this?
0
votes
0answers
18 views

Add comments to any of several posts in an archive listing?

I just had a client ask for this and I am not sure it is even possible (or doable in anything close to staying in our time constraints/budget). I have a custom post type that only consists of very ...
0
votes
1answer
51 views

Wordpress monthly archive category specific

I have built a specific page to display only the posts in specific children categories. I want to have the monthly archive on the right hand side but only relating to those specific children ...
0
votes
1answer
46 views

Custom loop in addition to default on archive page

I'm trying to create an interface on the admin that will allow our authors to select top resources to place as an aside on our archive page. I'm trying to add a loop in addition to the original query ...
1
vote
2answers
98 views

Date archives for custom post type

I have seen many questions/posts regarding this, but have yet to find a decent solution. Basically I am trying to do what wp_get_archives does, but for a custom post type (personally I am unsure why ...
0
votes
1answer
137 views

Custom Post Type archive

Hey all first off im a WP newbie so go easy! Ive been searching for a couple of days now to see if I can find the answer to this but cant get anything definitive. I have a custom post type called ...
0
votes
1answer
71 views

Problem with multiple loops in wordpress theme

I am using multiple loops like this <?php $posts = get_posts('numberposts=1&order=DESC&orderby=post_date&category='.get_cat_ID( 'سیاست' )); foreach ($posts as $post) : ...
0
votes
2answers
33 views

Post-Archive like a page in a specific subdirectory

I have a webpage with posts which belong to specific categories (eg projects). I want to show the archive of a specific category like a page. Status quo The site structure is similar to this: / ...
1
vote
1answer
71 views

What's wrong with my date_query?

It's WordPress 3.9 "Smith". I'm trying to implement a new Archive page as per the suggestion of @Milo. $categories = get_categories( $cat_args ); //it's NOT important for the Q, as it's fetching ...
1
vote
2answers
280 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
30 views

How to show months in wordpress archive page?

I am a newbie to wordpress and have no knowledge of PHP. I want to show the months in my archive page, in this manner where, it shows the starting month when i my first post was made and continues ...
1
vote
1answer
24 views

Get IDs of posts currently visible on archive

This probably is a easy one for many. And also probably is already answered here, but I don't know how to search for it - so sorry I did search but not found anything. I like to get the contents of ...
0
votes
0answers
11 views

Calendar active state when on a post?

I am using the calendar as navigation for a blog. My main issues is when you click a day from the calendar: 1) it goes to that day's archive page instead up first post of that day. 2) when you get ...
1
vote
1answer
80 views

Show full posts in archive

I have an issue where I need to display the full posts in my archive page. E.G. I have >two posts and I would like to have EACH of them displayed in full in the archive page. Thanks! How would I do ...
0
votes
1answer
29 views

Need to have an archive widget which organizes and displays a custom post type using a custom date field

I found a handy plugin at http://www.redletterdesign.net/wp/cpt-archive/index.php for generating a calendar archive using a custom post type. My problem is I need it to organize these posts not by the ...
1
vote
1answer
40 views

Redirect blog archive into certain format

My blog archive URLs were like: http://example.com/2014/03 I changed my site's permalink from /%postname%/ to /%postid%/%postname%/, and using Redirection plugin, I set a redirection like: and ...
0
votes
1answer
29 views

Permalinks of archive tag wordpress

I try to add link of tag archive in text that contain tag. For example:- if i have tag that name "football" and in single.php i display the content like "the_content();", So now when article have ...
1
vote
1answer
786 views

How we display Archives for specific categories

I just want to show Archives for special categories. For example i have categories abc,xyz. I just want to show Archives for xyz not for abc. Currently i am using code to display Archives is ...
0
votes
0answers
50 views

Create a filter that is using 2,3 or more custom fields

I want to integrate a archive search by custom field into my website. I have this tutorial. It works fine, but I need to integrate more custom fields. Ex: I want to integrate 2 more custom fields ...
0
votes
1answer
79 views

Archives for each category on WP Multisite

I'm working on a multilingual site for a client. The easiest way to do this (for free) I found was to use WordPress Multisite Language Switcher (http://lloc.de/msls). I've been working on this site ...
0
votes
0answers
19 views

How to add rewrite rules adjust to permalink structure

I want to create an Archive Widget for Custom Post Type (product). I let my client to change permalink structure by himself. So, my question is: how to add rewrite rules adjust to permalink ...
1
vote
1answer
48 views

CPT: archive-cpt.php VS custom page template

I've created a CPT named portfolio. Now i want to create a page which will act as an INDEX for this CPT. Now i've two choices .... a) Make a custom template having custom WP_Query. In this way i can ...
2
votes
2answers
3k views

Get custom post type slug for an archive page

How do I discover the custom post type slug when I'm on an archive page? For instance if /products/ fires the archive-products.php template, how (pragmatically) do I get the post type slug? Thanks
0
votes
1answer
81 views

Date Ordered Archive Page for single category?

The code below enables an archive of posts in date order. But I can't figure out how to change this so it only pulls one category of posts. Link Any help greatly appreciated <?php //* Template ...
0
votes
1answer
18 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
0answers
48 views

How to add archives (with pagination) to page template?

So the site I'm building has a few different archives pages. For the newest one I'm building, I tried to copy the archive.php I've got: page-archives.php: <?php get_header(); ?> <section ...
0
votes
2answers
322 views

Custom taxonomy archive page not working

I have a custom post type, course with an associated custom taxonomy curriculum-area. On the permalink domain.com/course/, a list of all courses is shown as expected. However, on the permalink ...
8
votes
4answers
9k views

Default archive URL wordpress

In wordpress you have a few 'default' archive URL's. Like for example: http://www.mydomain.com/2011/ generates an overview of the posts of (only) that year. If you have an category blogs the url ...
1
vote
1answer
101 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
0answers
168 views

Custom post type category page not working

I have a custom post type called 'emp_case-studies'. Archive and Hierarchical are set to true. My archive-emp_case-studies.php and single-emp_case-studies.php are performing as expected. However, ...
0
votes
1answer
48 views

My posts section for logged in user

I would like to create a page that shows only posts written by the user logged in and get a link (such as www.example.com/AuthorPostsID) to put on the menu. I'm trying for two days. Does anyone know ...
0
votes
2answers
31 views

Archive not sorting correctly

I have a custom post type called "cif-events" and I want to sort by the value in wpcf-start-time. I added the following to my functions.php: add_filter('pre_get_posts', 'set_order_for_archives'); ...
0
votes
2answers
123 views

How to show year/month archive including months with no posts

I found a partial answer at: http://floatleft.com/notebook/wordpress-year-month-archives/ This solution shows all months that have posts. Its not even that much code: <?php $year_prev = ...
0
votes
0answers
39 views

Archive by months with pretty url?

I wanted to able to get the archive months working, I tried this http://codex.wordpress.org/Function_Reference/wp_get_archives#Last_Twelve_Months but it only gets the last 12 months, what I wanted ...
0
votes
1answer
25 views

Getting the author name on author archive page

My template not work for author name on author archive. I tried change to get_the_author but nothing changed. Hope someone help me out. Thank in advance.
3
votes
2answers
388 views

Adding content to archive and taxonomy pages on custom post types?

I have a custom post type named "Products" and a taxonomy called "Usage". On my "Products" landing page I'd like to have custom content that can be edited via WYSIWYG by the client. Same goes for the ...
0
votes
0answers
48 views

Archive Page - How to output a specific custom field instead of post content

I have several custom post types and I am using archive.php and it works fine, but now the client wants to replace the post content with a custom field called ingredients for the custom post type ...
0
votes
0answers
310 views

Query multiple taxonomies plugin with ajax, archive loading posts outside filters

I have a custom post type called jobs and within I have several taxonomies: Job type (full-time, part-time, practice, etc), Country, Job Area (design, development, etc). I'm using the plugin from ...
0
votes
2answers
122 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
0answers
55 views

Custom post type archive with taxonomy

Hmm OK, I'll try to be as clear as possible. I have a CPT named "custom_type" with the args (one of many) rewrite('slug' => 'space') and has_archive => 'spaces'. My first question. When calling ...
0
votes
1answer
65 views

First post article different on Archives template

Hi I'm trying to make the first post article in the list different for the archive template. Basically they'd all be in order descending, but the first post in the list would be styled differently. ...
0
votes
1answer
66 views

Code a Slider into an Archive Loop

I have created a custom archive page for my custom taxonomy. I want each post to display a slider for its images. I know I have to write some custom code for this work but I can't find any tutorials ...
0
votes
1answer
231 views

Custom post types with date based archive

I'm trying to create an archive for a custom post type. My custom post type is called journal and I'm running WordPress 3.3.1. My understanding is that from WordPress 3.1 this should be an included ...
0
votes
1answer
57 views

Archive page for custom post type and custom taxonomy

I've made a custom post type book and a custom taxonomy book_category. I've been trying to create an archive page where the books belonging to a particular category can be viewed. So far I've only ...
0
votes
1answer
193 views

remove 2014 from wp_get_archives

we have wp_get_archives('type=monthly'); function that have a output like this: Archives by Month: January 2014 December 2013 November 2013 but I want style like a table that sorted by years: 2014 ...
0
votes
1answer
64 views

How to organise post by category and date

I'll try to be as clear as possible. I'm working on a project that requires posts organised by category and date. I need something like this: First step: Annual listing of archive 2014: Jan Feb Mar ...
0
votes
0answers
43 views

Is it better to use filter for the_content in archive pages?

I'm using advancd-custom-fields plugin and I'm about to modifiy my acrhive content page that is shown frontend. I use the file personnel-archive.php (because the custom post type used is personnel) in ...