Forum Replies Created

Viewing 15 replies - 31 through 45 (of 147 total)
  • Thread Starter jbx

    (@jbx)

    Hi again Stefano,

    It was an issue with the way the categories were being selected. Nothing from your side!

    Thanks anyway!

    Thread Starter jbx

    (@jbx)

    Hi Stefano,

    Thanks for replying so quickly.

    So I had added in the theme-options.php as 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 in theme.php I 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.

    Thread Starter jbx

    (@jbx)

    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.

    Thread Starter jbx

    (@jbx)

    No worries. Was probably late at night and I just copied and pasted the messages to ask whether anyone else faced the issue.

    Thread Starter jbx

    (@jbx)

    OK 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.

    Thread Starter jbx

    (@jbx)

    Yeah, 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.

    Thread Starter jbx

    (@jbx)

    Dude, 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.

    Thread Starter jbx

    (@jbx)

    It 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.

    Thread Starter jbx

    (@jbx)

    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.

    jbx

    (@jbx)

    @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?

    jbx

    (@jbx)

    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.

    Thread Starter jbx

    (@jbx)

    Hi, Thanks for your reply.
    Yes since I disabled the yarpp_support check 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() and related_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_support flag now because I commented out and that function just returns true.

    Thread Starter jbx

    (@jbx)

    So I suspected that the reason might be because I don’t have the yarpp_support property 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 the related_posts() function.

    I tried to comment out the yarpp_support check and made post_type_filter return true always. 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?

    jbx

    (@jbx)

    Yep 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…

    Thread Starter jbx

    (@jbx)

    In 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.

Viewing 15 replies - 31 through 45 (of 147 total)