Problems with custom post type and hierarchical permalinks
Problems with custom post type and hierarchical permalinks
Problems with custom post type and hierarchical permalinks
Can’t post comment to blog in wp-multisite
I just coded a workaround solution for this issue, if anyone is interested here is my solution: This solution is using the Bootstrap Navs Option , so you need first to download Bootstrap and link it in your header or index file. Please read the comments in the below code carefully to can understanding what … Read more
Rewrite URL based on form input
Try this: <?php function array_random($arr, $num = 1) { shuffle($arr); $r = array(); for ($i = 0; $i < $num; $i++) { $r[] = $arr[$i]; } return $num == 1 ? $r[0] : $r; } $a = array(‘vallelogo.png’, ‘img2.png’); echo ‘/img/’ . array_random($a); ?>
Rename uploads filenames to POST-ID on upload
wow, after more banging of my head against the wall, it took this: add_rewrite_rule(‘work/all/([^/]*)/([^/]*)/?’, ‘index.php?post_type=project&name=$matches[2]&mode=all’, ‘top’); Two things actually, I had to include a post_type=project part as well as change pagename to name. If I remove either one, I get my previous results. I am not sure why this set of values works when other … Read more
Plugin (smart archives reloaded) crashed site / no access on admin panel
I think the problem is not with shortcode but with your code – you can’t nest blocks 😉 This should work just fine, I guess: <?php echo do_shortcode(“[standout-css3-button href=””. get_post_meta($post->ID, “church-website-url’, true) .”‘]Church website[/standout-css3-button]”); ?>
Add wp_reset_postdata(); after each loop, if you use your custom query, you should use wp_reset_query();