This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fsc_figure( $image, $size, $imageclass, $captionclass ){ | |
/** | |
* Let plugins pre-filter the image meta to be able to fix inconsistencies in the stored data. | |
* | |
* @param string $image The ACF field name (i.e. 'your_photo_name'). | |
* @param string $size Thumbnail size (i.e. 'Thumbnail', 'Medium', 'Large') | |
* @param string $imageclass The Figure class you want to use (ex: 'my-figure') | |
* @param string $captionclass The Figcaption class you want to use (ex: 'caption-blue') | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Dependent Plugin Activation/Deactivation | |
* | |
* Sources: | |
* 1. https://pippinsplugins.com/checking-dependent-plugin-active/ | |
* 2. http://10up.com/blog/2012/wordpress-plug-in-self-deactivation/ | |
* | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
- I have a CPT named Galleries and within this CPT there are 6 individual galleries, all using the same format. | |
- I have used the Enhanced Media Library plugin to allow a category(ies) to be added each image uploaded. | |
- single-galleries.php - is a template used for displaying each of these individual galleries. | |
- Each individual gallery has aprox 4 categories in use that are assigned to the different images. | |
- There are aprox 24 categories for all of the images across the 6 individual galleries(1-2 per image) | |
Problem: code for "gallery-filter" below is currently echoing out ALL(~24) media categores. | |
Solution needed: for only those categories acutally used on the page (rememeber 6 diff galleries) |