1

i make a new page single-1.php but i don't call new page . only call single.php how to use single-1.php. any help me

2 Answers 2

2

if you name single-1.php the file, wordpress is try to load it, if the custom post type is '1'. Not a good solution.

If you want to use a template that is different from the standard post for the custom post type, name it 'single-'.php. Wordpress will load it automatically for you!

For further information see: http://codex.wordpress.org/Post_Types

Hope this it help!

Sign up to request clarification or add additional context in comments.

Comments

0

don't quite understand what you mean, but maybe this works for you:

single.php:

<?php include "single-1.php"; ?>

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.