Creating a Category Taxonomy

I would really suggest using one custom post type and one custom taxonomy with terms under the custom taxonomy which is assigned to a show. This structure will function exactly like normal posts with normal categories, the only difference is that it will be outside the scope of default blogging as custom post types are … Read more

How to pick “full/thumbnail” images in the loop?

Try just using the traditional $i iterator (untested) but I can’t see why this wouldn’t work.. <?php $i = 0; while ( have_posts() ) : the_post(); $i++; if ( $i == 1 ): ?> <!– First Post –> <div id=”post”> <a class=”post_image” href=”https://wordpress.stackexchange.com/questions/165568/<?php the_permalink(); ?>” title=”<?php the_title(); ?>”> <?php if ( has_post_thumbnail() ): ?> <?php … Read more

display specific widget to a page

you can create new widget area. function header_widget_areas() { register_sidebar( array( ‘name’ => __( ‘header’, ‘header’ ), ‘id’ => ‘header’, ‘description’ => __( ‘Insert something for about us text.’, ‘header’ ), ‘before_widget’ => ‘<div class=”widget span3″>’, ‘after_widget’ => ‘</div>’, ‘before_title’ => ‘<h4>’, ‘after_title’ => ‘</h4>’, ) ); } add_action(‘widgets_init’, ‘header_widget_areas’); Then place your widget in … Read more

writing an unique php function to be used on my website

You are returning the translation in your function, not printing it. Using <?php echo date_translation(); ?> should solve the problem. (given that functions.php is initiated at the time you use the function) Edit: In order to follow WordPress convention, you should call the function get_date_translation(). If you want the function to echo the result instead, … Read more

How do I show my containing my custom field ONLY if there is a set value on that custom field? [closed]

You can use get_field from ACF to check if the field is available and according to the documentation how you conditionally check if a field has contents. <div class=”wrapper”> <?php if (get_field(‘discount’)) { ?> <p>Discount: <?php the_field(‘discount’); ?></p> <?php } else { ?> <p>Price: <?php the_field(‘price’); ?></p> <?php } ?> </div><!–wrapper-end–> This should give you … Read more