Links Image in “Catalog” Page to Posts

In your function virtarich_katalog_function wrap the thumbnail with an <a> link tag like this: function virtarich_katalog_function() { global $post; $vtr_query = new WP_Query(‘showposts=10000’); while ($vtr_query->have_posts()) : $vtr_query->the_post(); ?> <div class=”col-md-3 ikibro”> <div class=”wpagen-produk”> <div class=”katalog-gambar-center”> <div class=”katalog-gambar”><a href=”https://wordpress.stackexchange.com/questions/260406/<?php the_permalink() ?>” title=”<?php the_title(); ?>”><?php virtarich_thumb_normal() ?></a></div> </div> <div class=”katalog-title”><?php the_title(); ?></div> <div class=”katalog-harga”>Rp <?php virtarich_harga(); ?><span … Read more

Permalinks custom base to redirect to archive.php

Have a look at the following .. function my_parse_request allows for the template to override. function my_query_vars adds your custom argument to the WordPress white listed args function my_init registers the rewrite. function find_custom_template finds your template in either a parent or child theme. remember you will need to flush() your permalinks for the rewrite. … Read more