I have 4 page templates with same query.
Is it possible to write conditional statement?
- If I go to single post view (
single.php) from page template 1 (
page-main.php) display something (for example show div),
- else if I go to single page view (
single.php) from page template 2 (
page-second.php) display something,
- else etc.