Forum Replies Created

Viewing 15 replies - 1 through 15 (of 23 total)
  • Thread Starter accuratelimited

    (@accuratelimited)

    Hi Brian,

    Thanks for the reply. It may have been something to do the genericons stuff and it was maintaining the information in the cache? Still, it was odd that neither isithacked, your plugin or other sites said there was a problem.

    Perhaps the plugin should clear the cache when a security update is released? If if does, sorry I hadn’t clicked that option.

    I have uninstalled the plugin and removed the tables and all seems to be working again with my site.

    May I say though, the whois registered owner of the site received an email from some online web company [redacted] signed by a “Wesley Slade” which caused me some issues. This was directly after my adding the post above. I assume this company is reading support forums. So, Wesley, don’t be a ####.

    Regards

    David

    Thread Starter accuratelimited

    (@accuratelimited)

    The above function doesn’t work as it will attempt to return posts when you ask for a single page. It does need the is_category or is_archive if you prefer. So it should be:

    `function arra_add_custom_types( $query ) {
    if( (is_category() || is_tag()) && $query->is_main_query() ) {
    $query->set( ‘post_type’, array(
    ‘post’, ‘referee’
    ));
    return $query;
    }
    }
    add_filter( ‘pre_get_posts’, ‘arra_add_custom_types’ );’

    Obviously, if you wanted them to appear on your blog homepage you’d add “is_home() ||” before the is_category().

    Thread Starter accuratelimited

    (@accuratelimited)

    Alchymyth!!!! You are a lifesaver. That has worked like a treat! My mistake.

    Although only this worked as intended (incorporating both suggestions):

    if( (is_category() || is_tag()) && $query->is_main_query() ) {

    I then didn’t need the reference to the menu_item. In fact, I want it to apply to everything so can use this:

    `function arra_add_custom_types( $query ) {
    if( $query->is_main_query() ) {
    $query->set( ‘post_type’, array(
    ‘post’, ‘referee’
    ));
    return $query;
    }
    }
    add_filter( ‘pre_get_posts’, ‘arra_add_custom_types’ );’

    Thanks guys, that is the way forward. If anyone thinks it’ll screw up anything else please let me know.

    Thread Starter accuratelimited

    (@accuratelimited)

    Thanks for the suggestion. I got really excited when I saw it because it makes perfect sense.

    I’ve tried using it but it still doesn’t work, unfortunately. I am adding this in the function file of the theme as would be expected.

    I changed the first line to
    if( is_category() || is_tag() && $query->is_main_query() )
    and also tried:
    if( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) {

    Neither worked and still showed the posts in the sidebar widget.

    There is a workaround, of course: hiding visibility of the widget except on single posts / custom posts but I would prefer not to.

    If your categories and tags appear on product pages you should be able to get rid of them with CSS alone.

    If you view source on a product page you may see something like this

    <body id="post-123" class="single single-product">

    You may then see that the categories and tags appear in their own div with their own class. e.g. <div class="meta">Categories: </div>

    Using css something like:

    .single-product .meta {
    display: hidden;
    }

    Should work. The same applies if you are using the < Article > and the stuff you are hidding sits in there.

    Thread Starter accuratelimited

    (@accuratelimited)

    Please disregard above. I had also added this code

    function myprefix_add_custom_types( $query ) {
      if( is_category() && empty( $query->query_vars['suppress_filters'] ) ) {
        $query->set( 'post_type', array(
         'post', 'referee'
    		));
    	  return $query;
    	}
    
    if( is_single() && empty( $query->query_vars['suppress_filters'] ) ) {
        $query->set( 'post_type', array(
         'post', 'referee'
    		));
    	  return $query;
    	}
    }
    add_filter( 'pre_get_posts', 'myprefix_add_custom_types' );

    I have now removed it and it’s working again. Sorry.

    Thread Starter accuratelimited

    (@accuratelimited)

    Sorry Nick, Yes you are right.

    There were DIVs in the html code but all were closed. I have removed them now. The code also looked like something your plugin would make as the first div was called gce-event-list or similar.

    Not sure how they got there, it also doesn’t explain how further down the page that the information was being displayed as intended (but still a quirk of my making).

    I appreciate your assistance. I have left it using the “simple display options” since the event builder code doesn’t output any HTML. All that is output is:

    <div class="gce-feed gce-feed-1320">Blues v Lions<br />
    Starts: 7:35 pm Location: QBE Stadium Description: Super Rugby Match. Must watch </div>

    This was the “Text (HTML)”:
    [event-title]
    Starts: [start-time]

    [if-location]
    Location: [location]
    [/if-location]

    [if-description]
    Description: [description]
    [/if-description]

    Which means it all goes on one line and doesn’t allow me to style anything.

    I mentioned this on the feature request. Any chance you can output code that looks something like:

    <div class="gce-feed gce-feed-1320"><br />
    <p><span class="gce-event-title">Blues v Lions</span></p><br />
    <p><span class="gce-event-start-title">Starts: </span><span class="gce-event-start">7:35 pm</span></p><br />
    <p><span class="gce-event-location-title">Starts: </span><span class="gce-event-start">7:35 pm</span></p><br />

    Perhaps using code like:
    [event-title]
    [start-time-title] [start-time]

    [if-location]
    [location-title] [location]
    [/if-location]

    [if-description]
    [description-title] [description]
    [/if-description]

    Even this might be a little over-kill – I think if the Star-Time / Location / Description were put in a span element then that output could be styled. E.g. Adding a background image for location rather than text. Alternatively, a designer can just use the :before selector.

    Anyway, it seems I have taken enough of your time.

    Thanks for your help. Great and simple plugin.

    Thread Starter accuratelimited

    (@accuratelimited)

    Also deactivated all plugins and no change

    Thread Starter accuratelimited

    (@accuratelimited)

    Tested with 2015 and have the same result.

    This is my code:
    [event-title]
    Starts: [start-time]
    [if-location]
    Location: [location]
    [/if-location]
    [if-description]

    Description: [description]
    [/if-description]

    However, I have now used the simple sidebar settings and clicked the check box and it works. This is a good workaround for the time being.

    Thread Starter accuratelimited

    (@accuratelimited)

    Hi Phil,

    Same error.

    It only applies to the first two days that have multiple events. All others are fine.

    If no-one else is getting this error, lets park it for a month and see if it goes away? I can live with it at the moment but what i’d like to have done is have the events side by side. e.g: :nth-child(even/odd) wrapping left and right because of my design the text looks really small.

    I can’t currently do that because the second .gce-event-day (first with multiple days) hasn’t closed properly and therefore is the entire page.

    The list is generated with the shortcode so I haven’t done anything to it. Please note, this applies only on the full page grid (which uses DIVs and not on the sidebar)

    David

    This has now been done and it’s a great feature! (I didn’t see it though until I had manually changed everything)

    If using the widget, you can select from the drop-down:
    “Display Events as:” -> Grouped List

    This will allow you to remove the “Events On” as the title (date) is always displayed and will avoid that additional space.

    Thread Starter accuratelimited

    (@accuratelimited)

    Hi Nick,

    Please disregard. RESOLVED

    My theme [Expound] was adding padding to the TD element of 8p pixels at lower resolutions this was causing the table to expand.

    Perhaps an over-ride in your style sheet but otherwise, no problems.

    Thread Starter accuratelimited

    (@accuratelimited)

    I apologise for the confusion, meant to say cell height is larger than cell width.

    I’m now concerned about the width of the table. I’ve tried border-box but not sure which element to apply this too. (If that is the right solution at all?)

    Thread Starter accuratelimited

    (@accuratelimited)

    Hi Nick,

    I’d still like some assistance on the width overrun issue if you can. I can’t figure out why it is doing it.

    The cell height is set in you CSS at 80px but the rest is responsive.

    However the responsive doesn’t work under 400px screen width. Do you have any advice?

    David

Viewing 15 replies - 1 through 15 (of 23 total)