New answers tagged

0

The question isn't very clear to me but i'll attempt to answer anyway, forgive me if it's obvious to you: What you describe is the behavior of "custom post types" When you create custom post types you define a slug like your "suburl" and "suburl2" and all posts created under that type fall under site.com/suburl/post-title I'm sure that if you first create ...


0

It is normal to have some text used in template. Typically that would be pieces of "technical" text, related to interface and which must be in code to be localized. In solutions meant for public use it is certainly not normal practice to have actual content hardcoded in templates. For private projects it is more or less — do what makes sense to you. One ...


0

Take a look at the WordPress Template Hierarchy to see how to have different looks for different pages. The template for the front page, for instance, should be named front-page.php. If you follow the naming convention for templates, you don't need to do anything in functions.php



Top 50 recent answers are included