Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • dendis84

    (@dendis84)

    Thanks @jeherve- I wanted to do another round of posts to make sure, but it looks like I’m still not having any luck excluding the event posts. Let me know if there’s anything else I can try, I’m game.

    dendis84

    (@dendis84)

    I’m also hoping to find a fix for this – the jetpack related posts have been so much better than others I’ve tried!

    I’m running a news site. I created a category called “Event” which I assign to posts no one would want to read after the event has passed. I used the most recent code snippet and replaced ‘lawyer-spotlight’ with ‘event’ but no luck.

    So any of these posts shouldn’t show up.

    Here’s a recent post in which several “Event” categories are linked.

    Also at the bottom of this post I see this post as related.

    Then on this one there are two posts marked as “Event” showing up under related.

    I’ll paste in the function code here just to rule that out:

    function jetpackme_filter_exclude_category( $filters ) {
    	$filters[] = array(
    		'not' => array(
    			'terms' => array(
    				'category.slug' => array( 'event' ),
    			),
    		),
    	);
    	return $filters;
    }
    add_filter( 'jetpack_relatedposts_filter_filters', 'jetpackme_filter_exclude_category' );
    Thread Starter dendis84

    (@dendis84)

    If anyone comes across this, we did eventually solve this with some custom javascript that formatted a csv file.

    Thread Starter dendis84

    (@dendis84)

    Thanks Andrew. I’m actually hoping to use one of the various WordPress calendar plugins to host our online calendar and leave Access behind. Do you know if there are any calendar or export plugins that would accomplish what we outlined above?

    Thread Starter dendis84

    (@dendis84)

    Wouldn’t it be possible for a plugin to take the tabular information and export them in the order you want in a text file? Something like:

    <Date>. <Time>. <Title>. <Description>. <Location>. <Cost>.

    Which might read:

    2/2/2016. 10am. Community Cupcake Festival. A family-friendly fundraiser for local arts programs. Village square. $5.

    At that point you’d probably want to do some find & replace in Word and some other cleanup, but it wouldn’t be too bad.

Viewing 5 replies - 1 through 5 (of 5 total)