nsp-code
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Hide & Security Enhancer] Remove description header from Style fileThis functionality has been temporary removed, it will be re-coded and published in the next few versions.
Thanks
Forum: Plugins
In reply to: [Post Types Order] sort posts inside categoryHi,
This is available only for advanced version, for more details please check at Advanced Post Types Order plugin page.Thanks
Forum: Plugins
In reply to: [Post Types Order] Menu OrderHi Jamie,
Actually what you looking for (e.g. sort indexes to be saved within default menu_order column) will not work, there are few things to consider:1) Since you will sort the posts within the categories, that means there will be multiple posts with the same menu_order value (e.g. multiple posts with menu_order value as 1, 2, 3 etc) When using that to set the order, it will not be accurate.
2) If you use the above method, sorting a post within multiple categories will not work. Since the menu_order can hold only a value at a time, only the very last sort will be kept, the previous will be lost.
3) Giving the above, the Advanced Post Types Order plugin handle sorts through lists, meaning you can create order of objects without losing any previous sorting. The plugin apply the order automatically through filters, or you can call that through ‘orderby’ => ‘menu_order’ and the code will take care to apply the sort as defined within admin.
For more details i suggest to check with plugin documentation and articles.
Thanks
Forum: Plugins
In reply to: [Post Types Order] After installing this plugin, random post is not gettingInstead
$all_people_posts = get_posts($args_post);
try using
$all_people_posts = new WP_Query($args_post);- This reply was modified 9 years, 3 months ago by nsp-code.
Forum: Plugins
In reply to: [Post Types Order] After installing this plugin, random post is not gettingHi,
First of all there are errors within your arguments.. see https://codex.ww.wp.xz.cn/Class_Reference/WP_Query#Order_.26_Orderby_Parameters the Orderby should be set for ‘rand’ and Order either ASC or DESC.
If you keep the plugin Autosort option turned On, add ‘ignore_custom_sort’ => ‘true’ within your custom query arguments to ignore the order.Thanks
Forum: Plugins
In reply to: [Post Types Order] Plugin doesn’t work with Visual Composer?Hi,
The Post Types Order plugin has not been tested with Visual Composer, but it should work for basic sorting. If you need full control and 100% compatibility with Visual Composer, please check with Advanced Post Types Order plugin.Thanks
Forum: Plugins
In reply to: [Post Types Order] Posts out of order, should not be sorted at allHi,
The posts have been previously sorted, that’s why it apply the order. There are multiple approaches for your scenario:1) Turn off Autosort, then include ‘orderby’ => ‘menu_order’ within queries parameters where sort need to apply.
2) Keep the Autosort On, then use a filter like pto/posts_orderby/ignore to force the default order. return True to ignore a sort. This filter can take 3 arguments:
$ignore_status (need to return)
$orderBy
$queryI suggest depending on $query to return True (ignore autosort) if need.
3) Go to your phpMyAdmin (check with your host) and reset all menu_order value to zero for posts. This is a dangerous operation, i suggest so you back-up the database before do any changes.
4) Update to Advanced Post Types Order plugin and simply use conditionals to narrow down a sort appliance.
Thanks
Hi,
You can rely on a filter like pto/posts_orderby/ignore and return True to ignore a sort. This filter can take 3 arguments:$ignore_status (need to return)
$orderBy
$queryI suggest depending on $query to return True (ignore autosort) if need.
Thanks
You may want to check with advanced version which support also non-hierarchical taxonomies.
Hi,
Which version of formidable forms you use? Trying to replicate the problem on this side.Thanks
Forum: Plugins
In reply to: [WP Hide & Security Enhancer] which option disable my plugin ?Hi,
The other code appear to not work along with WP Hide & Security Enhancer, so you need to decide which one you need to keep and disable the other one.Thanks
Forum: Plugins
In reply to: [WP Hide & Security Enhancer] Problem after upgradeCan you go to plugin interface and click Save once? It will attempt to re-save the rewrite rules.
Forum: Plugins
In reply to: [WP Hide & Security Enhancer] Problem after upgradeHi,
The plugin require to make some changes on your .htaccess file, however it appear is not being writable anymore. Can you ftp in and check the file permission? Make it writable again and activate the plugin.Thanks
Forum: Plugins
In reply to: [Post Types Order] Vulnerability: user capabilityAs default it use ‘activate_plugins’ capability which is being available only for administrator role.
Forum: Plugins
In reply to: [Post Types Order] Vulnerability: user capabilityHi,
Can you describe a bit more the issue you see? The plugin actually does use capabilities to show re-order interface, so unless set for Subscribers access, they can’t see and use that page at all.
Feel free to contact us directly do details on how to replicate the issue.Thanks