jbx
Forum Replies Created
-
Hi again Stefano,
It was an issue with the way the categories were being selected. Nothing from your side!
Thanks anyway!
Hi Stefano,
Thanks for replying so quickly.
So I had added in the
theme-options.phpas we had discussed above a couple of checkboxes to filter custom post-types (like Events for example), so that the user can then send a newsletter with just the events, and intheme.phpI had included the check for it so that the items are filtered.It was working fine till recently. I still get the ‘Events’ checkbox I had added but nothing comes up now (when I am sure there are entries). It also has the same behaviour for other custom post types.
Do you know if anything changed recently that could effect this?
This is the code I have in
theme-options.php:echo '<div class="nl-checkbox-group">'; $controls->checkbox_group('theme_post_types', 'post', 'Posts'); echo '</div>'; echo '<div class="nl-checkbox-group">'; $controls->checkbox_group('theme_post_types', 'event', 'Events'); echo '</div>';While this is the code in
theme.php:if (is_array($theme_options['theme_post_types']) && count($theme_options['theme_post_types']) > 0) $filters['post_type'] = $theme_options['theme_post_types']; else if (isset($theme_options['theme_post_types'])) { $filters['post_type'] = array(); array_push($filters['post_type'], $theme_options['theme_post_types']); }Which is then passed to
getposts()as follows:$posts = get_posts($filters);Thanks a lot.
Do you know if this could have stopped working after the latest updates?
I haven’t touched anything since this post, and everything was working fine, but now my client complained that filtering by post-type is not retrieving anything. The only thing I did recently was update wordpress to version 4.0 and update this plugin to the latest version.
Thanks.
Forum: Plugins
In reply to: [Simple Basic Contact Form] PHP errors after wordpress upgradeNo worries. Was probably late at night and I just copied and pasted the messages to ask whether anyone else faced the issue.
Forum: Plugins
In reply to: [Simple Basic Contact Form] PHP errors after wordpress upgradeOK I will check.
I think you should still fix those lines so that they check if a key in the array or whatever it is exists before trying to access it, otherwise if you’re assuming you have a value set when in fact you don’t its just running into unpredictable behaviour. Defensive programming doesn’t hurt.Forum: Plugins
In reply to: [Simple Basic Contact Form] PHP errors after wordpress upgradeYeah, but they appeared on the client’s admin panel, which was weird given that it was working fine before the upgrade, so it seemed something broke. (Not sure if E_NOTICE is ON, its been a month now). They are notices fine, but the message is saying that couldn’t find those values, so if it actually needs them in any of the next lines its not going to behave as expected… just saying. Just because they’re notices it doesn’t mean its not something wrong, (it could be a misspelt variable, uninitialised variable or something like that)… it just means PHP was able to proceed with the execution of the script.
Forum: Plugins
In reply to: [Simple Basic Contact Form] PHP errors after wordpress upgradeDude, no idea, those line numbers are from files in the plugin no? Can’t really provide more details than that.
I was upgrading WordPress to the latest version for someone, who had a theme which used this plugin, and the moment I upgraded I started getting these notices from the plugin in the main admin page. I don’t know why they started to appear after the upgrade. Maybe some settings got lost or something I don’t know what those 4 keys are that the plugin is looking for.
Forum: Plugins
In reply to: [AdRotate Banner Manager] New .g-1 container with margin after updateIt seems that for some mysterious reason, after the update some field ‘Advert Margin’ was added, but instead of defaulting to 0 it defaulted to 1, changing all my adverts to have this margin and breaking the layout.
Changed my groups to have Advert Margin to 0 now and it seems to be solved.
Yes it worked.
Not sure why I had to do this, because the dropdown lists with the permissions were already showing the right settings I had before.
Forum: Reviews
In reply to: [WP Popular Posts] not optimised@blogoguru If it is true that WordPress keeps counts of visits without an additional plugin, can you kindly indicate in which table is this count held?
If you just put a widget area in your theme at the top, called something like ‘language_widget_area’, you would then be able to add the language switcher widget to that widget area.
Hi, Thanks for your reply.
Yes since I disabled theyarpp_supportcheck temporarily to try and figure out where the problem is coming from I can now see not only Posts, Pages and Media, but also Revisions, Navigation Menu Items, Contact Forms and Product. The latter is the one I want.I tried to use both
related_posts()andrelated_entries()but none seem to give me any related items.Is there any other way I could understand what’s actually happening? It doesn’t seem to be coming from the
yarpp_supportflag now because I commented out and that function just returnstrue.So I suspected that the reason might be because I don’t have the
yarpp_supportproperty on my custom post type (I am creating it using the Custom Content Type Manager so I don’t have access to the properties). Even though I am explicitly passing it to therelated_posts()function.I tried to comment out the
yarpp_supportcheck and madepost_type_filterreturntruealways. I then went to the YARPP settings page and appended&action=flush. But I still can’t get any related products 🙁Is there any way I can debug what’s going on?
Forum: Plugins
In reply to: [DTX - Dynamic Text Extension for Contact Form 7] field options won't show upYep same problem for me too. Stay on Contact Form 7 version 3.8.1 if you need to use Dynamic Text Extension because the moment you upgrade to 3.9 it breaks. Hopefully it gets fixed soon…
Forum: Plugins
In reply to: [XML Sitemap & Google News] Error in sitemap-posttype-page.xmlIn my case I also don’t have any posts. I have 6 pages (its a new site).
But I installed another plugin “Google XML Sitemaps” and it works fine.I will try to install the dev version on my local installation this evening and see if it works.