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
global $post; | |
$terms = get_the_terms( $post->ID, 'product_cat' ); | |
foreach ($terms as $term){ | |
$product_cat_id = $term->term_id; | |
$product_cat_name = $term->name; | |
break; | |
} |
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
// filter the Gravity Forms button type | |
add_filter("gform_submit_button", "form_submit_button", 10, 2); | |
function form_submit_button($button, $form){ | |
return "<button class='btn btn-primary' id='gform_submit_button_{$form["id"]}'><span>VERZENDEN</span></button>"; | |
} |
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
.gform_wrapper ul { | |
padding-left: 0; | |
list-style: none | |
} | |
.gform_wrapper li { | |
margin-bottom: 15px | |
} | |
.gform_wrapper form { | |
margin-bottom: 0 | |
} |
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 | |
$loop = new WP_Query( | |
array( | |
'post_type' => 'posts', | |
'posts_per_page' => 9999 | |
) | |
); | |
$i = 0; | |
while ( $loop->have_posts() ) : $loop->the_post(); |
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 if (have_posts()) : while (have_posts()) : the_post();?> | |
<?php the_title(); ?> | |
<?php the_content(); ?> | |
<?php endwhile; endif; ?> |
NewerOlder