This file contains 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 | |
//Variables | |
$number_of_posts = block_value( 'post-amount' ); | |
$category = block_value( 'category' ); | |
// The Query | |
$the_query = new WP_Query( | |
array( | |
'post_type' => 'post', | |
'posts_per_page' => $number_of_posts, |
This file contains 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 | |
//* Do NOT include the opening php tag shown above. Copy the code shown below. | |
/** | |
* Rename slug in Genesis Portfolio Plugin. | |
* | |
* @author Anita Carter | |
* @link https://cre8tivediva.com/rename-genesis-portfolio-slug | |
*/ | |
function rename_portfolio_custom_post_type_slug() { |
This file contains 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
<script> | |
// Get ToC div | |
toc = document.getElementById("ToC"); | |
//Add a header | |
tocHeader = document.createElement("h2"); | |
tocHeader.innerText="Table of contents"; | |
toc.appendChild(tocHeader); | |
// Create a list for the ToC entries |
This file contains 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
.acf-pricing-table { | |
float: left; | |
padding: 2%; | |
box-sizing: border-box; | |
} | |
.acf-pricing-table:first-of-type:nth-last-of-type(2), | |
.acf-pricing-table:first-of-type:nth-last-of-type(2) ~ .acf-pricing-table { | |
width: 50%; |
OlderNewer