Get list of all custom tanonomy id

You can get it like this $terms = get_terms(“my_taxonomy”); $count = count($terms); if ( $count > 0 ) { echo “<ul>”; foreach ( $terms as $term ) { echo “<li>” . $term->name . “</li>”; } echo “</ul>”; } Otherwise you can also use like this $term_slug = get_query_var( ‘term’ ); $taxonomyName = get_query_var( ‘taxonomy’ ); … Read more

Where to add the permalink in this function?

Make use of the get_comment_link function in your foreach loop like so: foreach ($comments as $comment) { $output .= ‘<li><strong>’ . $comment->comment_author . ‘ said</strong> : “‘ . ‘<a href=”‘ . get_comment_link( $comment->comment_post_ID ) . ‘”>’ . strip_tags($comment->com_excerpt) . ‘…”</a></li>’; }

Grab WordPress Salt Data From URL

That returns PHP code. You can just eval it and then reference the various defines directly. However, that is just a random number generator on the back end. There is no pattern to it. You can just generate your own random values instead of pulling them from WordPress.org and it will work just as well … Read more

PHP mixed with some JS code to update WordPress theme settings

The way I see, you could minimize code mixing storing the return value of get_theme_option(“bg_slideshow”) into a JS variable, although it would not solve the problem as whole: var themeOptBgSlideshow = <?php echo get_theme_option(“bg_slideshow”); ?>; if(themeOptBgSlideshow == 1){ /* Background Images */ var bg_slideshow = jQuery(“.bg_slideshow”).attr(“data-active”); if(bg_slideshow == 1) { jQuery.vegas(‘slideshow’, { delay: 8000, backgrounds:[ … Read more