92 reputation
7
bio website
location
age
visits member for 2 years, 11 months
seen Sep 15 at 0:45

Mar
4
comment Restricting Users to View Only Media Library Items They Have Uploaded?
I really have to second the 'View Own Posts Media Only' plugin, it worked perfectly for me after looking everywhere for a jquery or php/html/css solution.
Feb
4
comment Custom rewrite rule for backend/admin?
This worked perfectly. You were right, it has to do with the ADMIN_COOKIE_PATH.
Feb
3
comment Custom rewrite rule for backend/admin?
Hm, if I'm not mistaken, if the user is not logged in, wouldn't visiting the URL simply forward the user to the login page anyhow? Or is that the issue, that it wouldn't be able to read the cookie even if the user was logged in?
Jan
14
comment How to remove text “Log In” from login page
@Pat Yes the custom code is loaded, I've modified it a fair bit and the changes are appearing. I'm confused because the text "Log In" appears nowhere in the Theme My Login block nor the page template. I'm thinking I can catch the output to an output buffer and strip the text "Log In", but that doesn't seem ideal.
Jan
13
comment Assign single template to multiple custom post types?
Perfect, thank you!
Jan
7
comment Custom wp_query pagination - next_posts_link() or wp_pagenavi() always empty
OK. Well, I decided to alter the loop with pre_get_posts and it is working just perfectly with infinite scrolling and everything! :)
Jan
7
comment Custom wp_query pagination - next_posts_link() or wp_pagenavi() always empty
As a note, manually entering the page in the URL http://domain/page/3/' does work. So I'm not sure why get_next_posts_link('Older Entries »', $project_query->max_num_pages) is always returning to a maximum to page 2.
Jan
7
comment Custom wp_query pagination - next_posts_link() or wp_pagenavi() always empty
I'm sorry for the delay in responding. You are definitely right, which is why I tried with a static page. As mentioned above, I mistyped my question and was using the correct query in my code. I now have a static page that is able to reach page 2, but goes no further. get_next_posts_link always returns a link to page 2 even though $project_query->max_num_pages returns 69. As a quick side question, I could alter pre_get_posts like this example, is it better practice?
Jan
7
comment Custom wp_query pagination - next_posts_link() or wp_pagenavi() always empty
Edit: the var_dump does indeed return a link to the next page, but this next page is a 404.
Jan
7
comment Custom wp_query pagination - next_posts_link() or wp_pagenavi() always empty
@ChipBennett I am using index.php to affect the homepage. I understand I could set it as a page template, and use a static page as my homepage, I tried it (attempt #3 in the question above). I am basically trying to list all of the posts of the custom post type 'project' on the homepage.
Jan
7
comment Custom wp_query pagination - next_posts_link() or wp_pagenavi() always empty
I'm sorry for the delay in responding. I've altered WP_query to WP_Query and unfortunately, I had mistakenly typed the main query here in my question, but my code was using the correct one. Unfortunately, the var_dump is still empty.
Nov
11
comment Rewrite Rule & Regex - Extract 'cat-name' and 'page-number' from http://domain.com/custom-post-type/category/cat-name/page/page-number
Yes I flushed the rewrite rules biter switching. I'll add the post type registration code to the question! I ended up using custom queries and rewrite codes after finding the default setup didn't handle the taxonomy (categories) or pagination properly in the archives.
Nov
6
comment Rewrite Rule & Regex - Extract 'cat-name' and 'page-number' from http://domain.com/custom-post-type/category/cat-name/page/page-number
This didn't seem to work. Is there a reason not to use rewrite rules, or maybe a reason why this suggestion didn't work?
Nov
4
comment 404 - Category pagination for custom post type
@Milo - If you look at my edit on the top of the question, it seems oddly limited to the fact that the paged variable simply is not pulled in via the URL. Changing the paged variable in the loop itself works fine, but the URL does not - http://domain.com/post-type/category/category-name/page/# - only the /page/# isn't working for some reason... Actually, I have finally found that Wordpress, thinks the category is category-name/page/2 - due to a custom rewrite function I had to insert
Nov
4
comment 404 - Category pagination for custom post type
@Milo - Thank you, I was trying to do this without a custom loop but found that I was then unable to have category archives within the custom post type archive. Without the custom if (isset($project_cat))..., I found that URLs such as http://domain.com/post-type/category/category-name were showing all of the post-type articles, and oddly enough, the category archive itself http://domain.com/category/category-name displays nothing. (no posts found)
Nov
3
comment 404 - Category pagination for custom post type
@Anjum - Unfortunately, flushing permalinks seems to have no effect.
Nov
3
comment 404 - Category pagination for custom post type
@Milo - Thanks for your response, I am using a custom query to work with paging, affect the category and to allow the loop to function regularly on other archives/pages etc. Regarding your second comment, it is not a custom taxonomy, but a custom post type, so archive-project should be correct: (from the link you sent) Custom Post Types display Template file used to render the Archive Index page for a Custom Post Type archive-{post_type}.php - If the post type were product, WordPress would look for archive-product.php.
Sep
30
comment get_category_link() for custom post type does not include custom slug rewrite?
I used the slug rewrite when declaring the custom post type: 'rewrite' => array('slug' => 'projects')
Aug
7
comment mod_rewrite enabled but Permalinks show index.php
How bizarre, after upgrading to wordpress 3.6, my permalinks were suddenly all broken and the permalink settings were trying to force an index.php in all the options. For some reason $_SERVER['SERVER_SOFTWARE'] was returning HTTPD. This worked though.
Jun
30
comment Pagination 404 on Index with custom query
Ok, you are right. After creating a custom template and setting a static page as the frontpage, it works now :) Thank you so much!