newbie here playing with php stuff, wanna learn. So the problem is. I have created custom posts and data from those is shown in a widget. Now i want to create custom single posts for those custom posts (dont get confused,yet).
I have single.php which shows my post and with
inside it i say if it's custom post show custom posts,else dont.
Now, thing is that i want to make a different single post look for those custom posts. I'v created a new file called match.php and inside i'v added stuff from single.php with some wanted modifications, and the only thing which remains is to call it i guess inside single.php but i dont know how.
So it would be inside single.php if there is custom post show it with match.php not with single.php, if there isnt show normal single.php
if needed my single.php is here http://pastebin.com/2VAnbTAv
single-custompostypename.php
template (replacecustompostypename
with your custom post type name).{}
sign above the editor. This will add your code in a code block. Alternatively, indent each line with 4 spaces ;-)