Tagged Questions
0
votes
2answers
76 views
REQUIRED: Could not find wp_link_pages. See: wp_link_pages by Theme Checker
I have run my theme through WordPress theme checker to see if it can be submitted to WordPress.org. I encountered this error:
REQUIRED: Could not find wp_link_pages. See: wp_link_pages
But this ...
12
votes
4answers
562 views
Why have <?php and ?> on every line
I've seen this convention pretty much everywhere, and, at times, it comes close to driving me nuts:
<?php //The loop ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php ...
1
vote
2answers
80 views
How should I store global information such as a phone number so that it is editable through the CMS?
Right now I have a p element in header.php containing the address and phone number my client wishes to use for contact info. How can I set this up so that it is editable through the WP admin area so ...
2
votes
1answer
336 views
Best practices: Custom theme sidebar menu - hardcode or widget?
Is it best to hardcode a sidebar menu using functions.php or sidebar.php OR use the custom menu widget? Are there times when each is appropriate?
5
votes
2answers
234 views
What are the ADVANTAGES of ORIGINAL wordpress template structure?
Precondition: coming from a Custom PHP applications(using symfony, zend and so on) world, for me it feels unnatural to have template separated in a way that is done in original wordpress theme. e.g ...
3
votes
1answer
441 views
Best practices - Should I create a child theme vs. customizing a framework theme? (such as HTML5 reset)
I have built quite a number of wordpress sites and have worked frequently with the HTML5 reset theme.
My workflow has been to simply edit the files in the theme because I often use quite a bit of ...
0
votes
1answer
101 views
Theme development: What NOT to do? [closed]
I have some experience with wordpress, coded some plugins, customized a lot of themes and did some core mods for a custom multisite network. It wasn't hard since I already knew PHP, but I never really ...
7
votes
1answer
891 views
Using classes instead of global functions in functions.php
In many themes I've seen (including TwentyEleven) and in the examples I've found online, when building the functions.php file for a theme all functionality is declared in a global scope. To clarify, ...
1
vote
1answer
218 views
Limitations when modifying wp_title with a filter
When constructing the HTML <title> attribute in a theme, I found there is a convenient hook for modifying wp_title.
However, a quick review of themes indicates using this hook is not common ...