Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Within the context of WordPress Theme-ing, the term 'template' refers to PHP files used to display content.
0
votes
1
answer
195
views
Using index.php as page template
When you put a name at the top of your index.php like:
<?php
/* Template Name: Blog Template */
?>
it will work for front-page and it will also create a new page template. I'm wondering if this is …
2
votes
2
answers
2k
views
How to move style from template file to <head> section?
Imagine the following situation:
//header.php contains:
<header id="header">logo and navigation</header>
//my-template.php contains:
<?php get_header(); ?>
<style type="text/css">#header { disp …
1
vote
1
answer
334
views
is_home() returns TRUE on page template
I'm wondering why my link: http://localhost/?page_id=3433 returns TRUE on is_home() usage:
if(is_home()){
var_dump(is_home());
die('test'); …
33
votes
3
answers
34k
views
Is there any way to use get_template_part() with folders?
I'm wondering if there is any way to use get_template_part() with folders? My main folder has a lot of files now because I put every re-usable element in a separate file. I'd like to put them in folde …