wickedplugins
Forum Replies Created
-
Thanks for the positive review @christer_f!
Hi @christer_f,
Are you referring to the order of a page within a folder when using the legacy folder browser?
If so, the order is in fact stored in the postmeta table like you guessed and the meta key is constructed using this pattern:
_wicked_folder_order__{folder_taxonomy_name}__{folder_id}The taxonomy name for page folders is
wf_page_folders. So, assuming you have a page folder with an ID of1, the meta key would be:_wicked_folder_order__wf_page_folders__1That being said, you can easily query pages by their folder-based sort order by setting the
orderbyparameter towicked_folder_order. For example, to get all pages in folder1ordered by their sort order within the folder, you could do something like this:$pages = get_posts( array( 'post_type' => 'page', 'posts_per_page' => -1, 'order' => 'ASC', 'orderby' => 'wicked_folder_order', 'tax_query' => array( array( 'taxonomy' => 'wf_page_folders', 'field' => 'term_id', 'terms' => 1, 'include_children' => false, ), ), ) );Note that
wicked_folder_orderonly works when you include a tax_query that filters by a single folder since the order is specific to a single folder.I hope this helps! Let us know if you have questions.
- This reply was modified 7 years, 4 months ago by wickedplugins. Reason: Corrected example meta key
Thanks so much for the positive review @plumdevelopers, we really appreciate it!
Hi @plumdevelopers,
Thanks so much for the screenshot of the JavaScript errors; that was very helpful in troubleshooting the issue.
We found the problem and have fixed it. Once you update to 2.11.2 the issue should be resolved.
I’m going to go ahead and mark this thread as resolved but, if you still have trouble after updating, please let me know!
Thanks for reporting this!
Thank you for the review @shamsudeen!
Thank you very much for the positive review @immk!
Thank you so much for your business and the awesome review @becosafe!
Thanks for the follow-up @amichaelwagner! Glad you were able to get it figured out. I’m going to mark this issue as resolved but feel free to let us know if there’s anything else we can help with.
Thanks!
Hi @amichaelwagner,
Just wanted to follow up on this and find out if you were able to narrow down the issue at all and if I can help troubleshoot further. Let me know!
Hi @amichaelwagner,
That’s really strange; the folders should sort alphabetically. Do you happen to have any plugins installed for sorting categories?
My guess is that another plugin might be changing the sort order. If it’s not too difficult for you, you could try disabling all other plugins to see if the sort order corrects itself. If so, you could re-enable the plugins one-at-a-time to determine which plugin is changing the order to something else.
Let me know what you find! If the issue turns out to be caused by another plugin, let me know and I can investigate further to see if it’s something we can address on our end.
- This reply was modified 7 years, 5 months ago by wickedplugins.
Thank you so much for the review @dnapiano!
Forum: Plugins
In reply to: [SmartCrawl SEO checker, analyzer & optimizer] Missing Columns on Posts PageGreat, thank you!
Great, thanks @rmeegs98dh!
Hi @rmeegs98dh,
Just wanted to follow up on this. Did you have any luck narrowing down which script was being blocked by the content security policy?
Let me know if I help with anything.
No problem, that makes sense.
Yes, I believe it is being caused by the content security policy; however, if I understand the error correctly, I think it is actually being caused by a script that is being loaded via load-scripts.php (if you view the page source and search for “load-scripts.php” you can see which scripts are loaded).
The folder panel depends on several scripts that are bundled with WordPress including jQuery, Backbone and some jQueryUI scripts. My guess is that one of those scripts is being blocked by the security policy which is preventing the folder panel from loading. If I’m not mistaken, jQuery uses the
eval()function which might be triggering it to get blocked by the policy.Do you have issues with any other JavaScript functionality on the live site (such as with the media modal)?
At the moment, it seems like the security policy would need to be tweaked to allow whichever script(s) is being blocked in load-scripts.php in order to get it working.
Let me know if I’m misunderstanding anything or if you have any additional error messages that may help troubleshoot the issue.