timb0jones
Forum Replies Created
-
Error my side
Thanks for the initial reply
Forum: Developing with WordPress
In reply to: Issue with Pretty Permalinks and the “Post Page” settingThis isn’t really what I want to do. I want to understand why my permalink structure is directly affecting the function of my website. Pretty permalinks is negating the expected result of selecting my page named ‘blog’ as the ‘posts page’ in the reading section of wp-admin.
When set to post-id the site functions perfectly.
When set to post-name the page /blog/ is broken (doesn’t show the standard loop or have the characteristics it’s supposed to) and removing this random line of code from my functions.php breaks three other pages (leads them to 404)
function gp_add_cpt_post_names_to_main_query( $query ) { if ( ! isset( $query->query['page'] ) || 2 !== count( $query->query ) ) { return; } if ( empty( $query->query['name'] ) ) { return; } $query->set( 'post_type', array( 'post', 'page', 'books', 'events' ) ); } add_action( 'pre_get_posts', 'gp_add_cpt_post_names_to_main_query' );
Forum: Developing with WordPress
In reply to: Issue with Pretty Permalinks and the “Post Page” settingBlog isn’t a custom post type – just the name of the page I want to display all my posts ??
Forum: Developing with WordPress
In reply to: Issue with Pretty Permalinks and the “Post Page” settingIt does, if you set the posts-page in settings. Its so weird
I’m using the standard loop from the index.php template
Got it working by adding <?php query_posts(‘post_type=post’) ?> just above the query which is great but now it doesn’t paginate…
Forum: Developing with WordPress
In reply to: Issue with Pretty Permalinks and the “Post Page” settingHi Ikaring
Thanks for coming back to me !
I’ve deleted the category to avoid the conflict but that doesn’t explain why my theme has changed the default functionality of wordpress so that the blog page doesn’t get given the blog class etc
The /blog/ page still isn’t working
Thanks !
Forum: Fixing WordPress
In reply to: Lightbox close after form submitThanks Davood
Forum: Hacks
In reply to: Posts within page within pageWow! Thank you so so so much
The blog links, and tools are such a good start
Thank you! Hopefully I’ll crack it and post the reply below
THANK YOU AGAIN!
Forum: Everything else WordPress
In reply to: Multi category previous and next linksHi mchelles
Thanks for the reply, and the help but…
I’ve tried both of those options and they’re not working for me unfortunately
I basically need the links to look at BOTH categories e.g MOTION and ARTICLE and go to the next MOTION ARTICLE (also previous) but instead it’s pulling in all the posts with the tag ARTICLE too, which is where I’m getting lost and confused
Best
Tim
Hey Robert!
Interestingly enough, that was how I’d written the markup in your “fixed” box on github link there
What I’d totally forgotten to do was set the “RAW HTML” plugin on each of these pages – as wordpress was adding extra elements within the HTML it must have been confusing the code
I only realised because of you pointing out on that link that the original markup was wrong – took me a while to realise that wasn’t my doing ??
Thanks so much for your help Robert!
Best
TimHi Robert!
Thanks for the reply – how strange!
I’m still getting the issue on Chrome, MAC OSX – maybe therein could be this issue
Basically, I’ve attached three screenshots below, when you click on the large 2/3 width images on the right, it should open a gallery (the featherlight one) which it does ?? but then that’s where the image duplication happens
Hopefully the screenshots help – https://imgur.com/a/BkAtF
Best
Tim