Open Post Thumbnail in New Child Theme File in Wordpress
Today I am stuck in a new problem using WordPress Theme Development. What I'm going to do is to open a Thumbnail image in a new separate child theme, when the user clicks on the anchor tag.
Example: Click to Open Image
and it redirects the user to the image on a separate theme file.
Code Example for single.php
a href=PLZ MENTION CORRECT SYNTAX HERE ); ?link to Another Page /a
Child Theme File single-attachment.php
?php
/***
Template Name: Advertisement
***/
get_header(); ?
?php echo get_the_post_thumbnail_url(); ?
?php get_sidebar(); ?
?php get_footer(); ?
Topic wp-load.php php plugin-development theme-development plugins Wordpress
Category Web