A web designer from Charlotte, NC, I enjoy working in the yard, kayaking, building stuff, making things, creating, thinking and of course WordPress.
View all posts by acrane →
This will create a filter system with Isotope automatically with your Post and Categories, or a Custom Post Type and a Custom Taxonomy. You’ll just have to fill in YOUR_CUSTOM_POSTTYPE and YOUR_CUSTOM_TAX. This also assumes you have Isotope pulling in correctly.
Sometimes pages or Custom Post Types use other methods of publishing content to the pages instead of just the content area of the WordPress WYSIWYG. This can be bad and confusing for clients when they see a poor or red rating because to achieve a rating, Yoast compares the content area with the title, url… So if the content is considered blank (by the plugin) it can never receive a good passing rating.
One simple solution without rewriting how a check is done, is to hide it with a function in your theme’s function.php file.
On hover, open up a hidden div and delay it’s closing.
$('#footerlinks ul li').hover(
function(){
$(this).next('li.footer-hidden').animate({ "max-width": "1000" }, 'fast');
// This only fires if the row is not undergoing an animation when you mouseover it
},
function() {
$(this).next('li.footer-hidden').delay(3000).animate({ "max-width": "0" }, 'fast');
});
<div class="blocks-container">
<div class="blocks item-0">
<h2>Lorem ipsum</h2>
<p>Phasellus ut nibh fermentum, vulputate urna vel, semper diam.</p>
<p>Aenean semper felis ipsum, vulputate consequat dui elementum vel.</p>
</div>
<div class="blocks item-1">
<h3>Lorem ipsum dolor</h3>
<p>Phasellus ut nibh fermentum, vulputate urna vel, semper diam. Nunc sollicitudin felis ut pellentesque fermentum. In erat mi, pulvinar sit amet tincidunt vitae, gravida id felis. Phasellus hendrerit erat sed porta imperdiet. Vivamus viverra ipsum tortor, et congue mauris porttitor ut.</p>
</div>
<div class="blocks item-2">
<h4>Lorem ipsum dolor sit amet.</h4>
<p>Aenean semper felis ipsum, vulputate consequat dui elementum vel. Nullam odio eros, sagittis vitae lectus id, pretium viverra lectus. Etiam auctor dolor non dui ultricies pulvinar.</p>
</div>
</div>
And add the call to the script in your custom js or whatever…
“Categories”: (checkboxes with your categories as choices)
Then create a place in your template to show them. Do this with the following code.
// do we show events
$showevents = get_field('show_events');
// Show event list if "yes"
if($showevents == 'Yes') :
// put all values into a variable
$allcategories = implode(', ', get_field('categories'));
// echo out results
echo do_shortcode( '[EVENT_LIST event_category_id=' . $allcategories . ']');
endif;