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 | |
<?php | |
/** | |
* Plugin name: Sample Plugin | |
*/ | |
/** | |
* User Role Specific Post Type | |
* | |
* @package User Role Specific Post Type |
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 | |
/** | |
* Get the Yoast primary category from its post meta value, and displays it, with HTML markup. | |
* If there is no primary category set, it displays the first assigned category. | |
* | |
* @param boolean $useCatLink Whether to link the category, if it exists | |
* @return void | |
*/ | |
function yourtheme_display_yoast_primary_category( $useCatLink = true ) { |
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 if (have_rows('action_buttons')) { | |
$counter = 1; ?> | |
<?php | |
while (have_rows('action_buttons')) { | |
the_row(); | |
?> | |
<!--Trigger--> | |
<a href="#" data-reveal-id="Modal<?php echo $counter ?>" class="button small"><?php the_sub_field('trigger') ?></a> | |
<div id="Modal<?php echo $counter ?>" class="reveal-modal" data-reveal aria-labelledby="modalTitle" aria-hidden="true" role="dialog" data-options="close_on_background_click:false"> | |
<br> |