adamweclick
Forum Replies Created
-
Forum: Plugins
In reply to: [Cimy User Extra Fields] Dropdown dynamic valuesAlso interested in different ways to populate the dropdown option. I would like to list all posts from a custom post type if possible.
Forum: Plugins
In reply to: [Post Types Order] Enable ordering for specific post types?OK thank you.
p.s. a spelling mistake on your site ?? “This works on booth IPv4 and IPv6 protocols.”
https://www.nsp-code.com/wordpress-plugins/ip-to-country/After digging through the documentation I found this gem.
‘reciprocal’ => true
Works as expected, cheers!
Forum: Plugins
In reply to: [WP-Filebase Download Manager] File view doesn't refresh using flash uploaderThe problem occurs after clicking ‘Add File’.
Forum: Fixing WordPress
In reply to: Sticky posts do not work with category__in, possible solution?Thank you for the ideas I’ll have a go at implementing them in a bit.
It is a static page (not index.php, but xxx-template.php). And it does work if I remove the ‘category__in’ which is why I thought it might be a bug. Do you know why sticky posts are only supposed to work on the homepage? just wondering about the logic behind putting so much importance on the home/blog page.
Forum: Plugins
In reply to: [Infinite-Scroll] Plugin is not loaded anywheresee my answer at the bottom of: https://www.ads-software.com/support/topic/infinite-scroll-js-error-uncaught-error-infinite_scroll-is-not-defined?replies=15
I have a feeling it’s the same issue.
Forum: Fixing WordPress
In reply to: Sticky posts do not work with category__in, possible solution?This is in a custom template file in a custom theme. Not too dissimilar to the generic template files of most themes, header, loop, footer, etc.
It’s for the main loop on the page. We have a temporary fix in place which uses regex to change the database query directly in order to get it to grab sticky posts first.
Forum: Themes and Templates
In reply to: Custom design for register_post_type and theyrbefore main loop on custom template:
<?php if ( get_query_var('paged') ) { $paged = get_query_var('paged'); } elseif ( get_query_var('page') ) { $paged = get_query_var('page'); } else { $paged = 1; } $cats = array( intval(get_cat_ID( $cat_name='categoryname' )), intval(get_cat_ID( $cat_name='category2' )), intval(get_cat_ID( $cat_name='category3' )), intval(get_cat_ID( $cat_name='category4' )), intval(get_cat_ID( $cat_name='category5' )) ); query_posts( array( 'post_type' => 'post', 'paged' => $paged, 'posts_per_page' => 5, 'category__in' => $cats ) );
Took me ages to figure this out myself, hope it helps myself
I’ve managed to get it working by modifying line 308 to return true in infinite-scroll.php, inside the shouldLoadJavascript() function.
It would be really nice to have this as a toggle option in the plugin config, as I’m going to have to give this to a client at some point and if they update the plugin every one of my custom pages that load post content is going to break.