What does this mean in wordpress? Easy question

It’s the text domain, used for translation. When you run something like this: <?php _e( ‘Hello World’, ‘html5blank’ ) ?> …WordPress will attempt to find the translated string in the loaded MO file for HTML5 Blank: load_theme_textdomain( ‘html5blank’, ‘path/to/language.mo’ );

Output unique taxonomy terms of posts inside a loop

Figured it out! $state_tax_args = array( ‘post_type’ => ‘products’, ‘orderby’ => ‘name’, ‘order’ => ‘ASC’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘product-line’, ‘field’ => ‘slug’, ‘terms’ => $pl_slug // provided at page load ), ), ); $state_tax_query = new WP_Query( $state_tax_args ); // counter to build array $i=0; if ( $state_tax_query->have_posts()) { $state_term_list=”<select class=”form-control” id=”inputStateSelect” … Read more

How do I make the most minimal vanilla theme possible with nothing but raw content?

The most minimal theme possible has two files: style.css and index.php. style.css /* Theme Name: Bare-bones theme*/ index.php <?php if( have_posts() ) { while( have_posts() ) { the_post(); the_content(); } } I’m not sure you could make it more “vanilla” than that. Keep in mind that any HTML markup within the post’s content will still … Read more

Update Data parameter of a wp_localize_script() call

wp_localize_script results in your data being printed to the page before your script tag via PHP, whether it be in wp_head or wp_footer, depending on where you’ve set your script to be output. Calling wp_localize_script from an AJAX handler won’t do anything, you’re returning data via JavaScript. What you can do is put any data … Read more