Jo Batkin
Forum Replies Created
-
Forum: Plugins
In reply to: [Arigato Autoresponder and Newsletter] IE8 gives 404 error on POSTI found the problem!! =)
This link was very helpful: https://contactform7.com/faq/#Are_there_any_reserved_or_unavailable_words_for_the_name_of_an_input_field
Apparently the form field ‘name’ is a reserved word in WordPress and it doesn’t handle it well (not sure why IE demonstrates this and not Chrome or Firefox).
I changed the code for the form to use ‘user-name’ and ‘user-email’ as the names for the form fields, and updated occurrences in bft-autoresponder.php where it checked for fields with these names, and now my form works in IE!
If you could fix this for the next version it would be much appreciated.
Forum: Plugins
In reply to: [Arigato Autoresponder and Newsletter] IE8 gives 404 error on POSTYou never test in IE? =( While I understand it is a pain, still a high percentage of users rely on it so unfortunately developers cannot ignore it. It is not all forms that cannot POST in IE, just some particular issue with the signup form in the BFT plugin. I’m sure it can be fixed without having to go to my host – I use HostMonster which is a large company hosting thousands of websites. I find it hard to see how it can be their problem, which is why I was hoping for some more information.
Thanks for your reply though, I understand you must be busy. If you don’t have any further information I will have to change plugins or try and sort it out myself.
Forum: Fixing WordPress
In reply to: numberofposts not working in get_postsThanks all for checking it out for me and reassuring me there was nothing wrong with my code.
After lots of googling I figured out that my theme must be using the ‘pre_get_posts’ filter to override the number of posts returned by get_posts. Once I knew this I just had to find the php file where this was being set, which I eventually did. After so many hours of trying to figure out why my code wasn’t working, it turns out that there is a ‘handy’ option in my theme settings to specify how many posts are displayed on a category screen. Changing this to -1 finally gives me all the posts in my category. If I don’t want to change the setting everywhere, but just in my sidebar code, then I can just add this:remove_filter('pre_get_posts', '<name of override function>'); ... code to call get_posts ... add_action( 'pre_get_posts', '<name of override function>' );
Thanks to all who helped.
Forum: Fixing WordPress
In reply to: numberofposts not working in get_postsI am trying to use it in the sidebar, to show all other posts in the current category.
Thanks for your reply dadvan, but I tried your code and I still got 6 posts, not 5.