Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms (1)

0
votes
2answers
1k 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 ...
0
votes
0answers
413 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
56 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
36 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
411 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
1answer
121 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
0answers
52 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
29 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
768 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
53 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
414 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
202 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
76 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
69 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
74 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
67 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
307 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
83 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
52 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 ...
0
votes
2answers
62 views

Taxonomy term archive default loop returns 1 record instead of 8

I have a Custom Post Type called "book" and a custom taxonomy for this CPT called "books". One term's slug of this taxonomy is "accepting-yourself". Here's the code of the "accepting-yourself" archive ...
0
votes
0answers
22 views

Modify link in widget archive

I want to add Google campaign to link in default wordpress widget archive. How can I do this?
0
votes
0answers
65 views

How do I create a custom archive page that my client can edit?

I've created a custom post type. I have set has_archive as true and understand I could also set it to has_archive => 'ctp' I also know that if I name a template file archive-cpt.php Wordpress will ...
0
votes
1answer
72 views

date.php shows all posts. how to fix it?

I am using the following function for category.php. It's working fine. function cat_page_list(){ /* post : returns the post for category page */ $paged = (get_query_var('paged')) ? ...
0
votes
1answer
400 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
270 views

Archive with months of current year only

I'm trying to figure out how to get the following archive navigation: JAN FEB MAR APR MAY JUN JUL AUG SEP OCT NOV DEC 2012 | 2014 Thus, a list with the months of the current or selected year ...
0
votes
1answer
33 views

Displaying year once in category.php [duplicate]

I want to be able to make my category.php display like this: 2013 Title 3 Title 2 Title 1 2012 Title 3 Title 2 Title 1 It's already been done for displaying ALL posts but how do I get it to ...
0
votes
1answer
64 views

Daily posts like an archive

I need to show 30 daily posts in the main page of a site. I also need to put 2 links, one that gets to a new page showing 30 posts made yesterday and the other to show 30 posts of 'tomorrow' if I'm ...
0
votes
1answer
73 views

Custom Post Types Archives and daily/monthly joke

I have created a custom post type called joke using custom post types ui plugin. I have enabled archives for that ctp. I would like to have a page that would display the daily (or monthly) joke, and ...
0
votes
1answer
34 views

Same template for all the terms of a taxonomy

My problem is the following. I have a custom post type called "photography" which contains a taxonomy called "photographyCategories", which contains several terms : "outside", "inside", "portrait"... ...
1
vote
2answers
505 views

Difference between an archive and a page listing posts

I am wondering what is the difference between a wordpress archive page, and just a page template listing out posts? Right now I have a custom archive page, listing all entries of a custom post type. ...
0
votes
1answer
44 views

date.php shows only three posts' title. how to fix it?

my archive.php <?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12, 'show_post_count' => 1 ) ); ?><br/> my date.php <?php get_header(); while ...
0
votes
1answer
994 views

Custom post type archive page pagination

I have set up an archive page for my custom post type reference, where I use a query to get all posts of type reference. This works, but when I try to paginate the result, it doesn't work. Right now, ...
0
votes
1answer
44 views

How to hide the year in archive link

I am using the following code to show the archive link by month. <?php wp_get_archives('type=monthly&limit='.date('m').'&show_post_count=1'); ?> but it shows as december 2013 (3) ...
0
votes
1answer
69 views

Show recent posts in single-post page

I'm trying to show recent custom posts in single-events.php I can make it work by using get_posts what I don't know how to do is exclude the post that is active so if I'm on 'Event 1' just now using ...
0
votes
0answers
50 views

How can I redirect all wordpress tag subdirectory (subfolder) to another one (archives/tag)

I changed my permalinks and it working fine but I need to redirect old tag folder to archives/tag to not lose links which google indexed below is my .htaccess file in the root of my recipes site ...
0
votes
1answer
133 views

How to get the date dynamically from archive.php to date.php?

My archive.php <?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12, 'show_post_count' => 1 ) ); ?><br/> My date.php $date1 = get_query_var('date'); ...
0
votes
1answer
30 views

what file I need to create to work date archive links?

I am using my own theme. my archive.php.. <?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12, 'show_post_count' => 1 ) ); ?> <?php wp_list_categories( array ( ...
0
votes
3answers
84 views

Any kind of custom post type in the front page and in the archive listing

I have a custom post type:products to have my post from my custom post type i have changeed these codes <?php $post_count = 1; ?> <?php if (have_posts()) : while ( have_posts() ) : ...
0
votes
1answer
30 views

How to set a link to custom archieve page

I am working on my blog where I wish to have a archieve for only specific category post. To make it, I create a custom archive-cat.php. So for example I can get archive link date by wp_get_archives(). ...
0
votes
0answers
12 views

How do I automagically use <!--nextpage--> in custom page template? [duplicate]

I have searched a lot now and not found a real solution that helps me with this: I am creating a custom page template for an archive page. This (static) page will show all my blog posts ordered by ...
0
votes
2answers
239 views

Menu Disappears on Category Pages

I have a site whose navigation disappears on category pages for posts in the ‘post’ post type, but not for posts in any of my custom post types. The ‘post’ post type and post of the custom post types ...
0
votes
1answer
360 views

paging is not working properly on news archives page [duplicate]

I need paging on news archives page. Data is coming correctly if display all records on same page. But if i add paging code, then pagination values (such as 1,2,3,...16) coming correctly, but if i ...
0
votes
1answer
196 views

how to make URL link query string

I have pages with a custom meta field called "ctr_state", and it contains a state name, like "Arizona". I am trying to construct a hyperlink that will return an archive-like list of pages that match ...
0
votes
1answer
54 views

How to make a custom Archive Page

For News Portals, we are using WordPress successfully. But the clients are not satisfied with the WordPress default archive. They want something different like the regular index page. So, how the ...
0
votes
1answer
57 views

Archive filtering

I was wondering if I can filter archive posts that are in a specific category, then apply another filter. For example, I have a featured category (where I display featured posts) and then I have my ...
0
votes
1answer
62 views

Custom Taxonomy List with Children

I am trying to display a list of terms for a custom taxonomy and am having a bit of trouble. The custom tax is for a Custom Post Type called project. What I want to do is list a Parent term and it's ...
0
votes
1answer
95 views

How to different style first 3 post on Category Archives Page

I searches lot of time but every one said first post. I need first 3 post different style with title , content.
0
votes
2answers
744 views

Optimal way to redirect home page to category archive?

Question What'd be an optimal way to redirect the home page of a WordPress site to a category archive without involving external factors (e.g. Apache's .htaccess) i.e. within WordPress? Why? (Only ...
2
votes
1answer
183 views

Display post links under month in paginated archive

I'd like to create an archive that lists posts under a month header. The months would just be plain text and the post titles, obviously, would link to the posts themselves! So: October 2013 Post ...
0
votes
1answer
231 views

URL of a custom post type's post format archive?

With pretty permalinks enabled, the URL of a Custom Post Format archive would look like this: http://example.com/type/link/ And it works for me. Now, considering that my custom post type archive ...