Within the context of WordPress Theme-ing, the term 'template' refers to PHP files used to display content.
1
vote
2answers
26 views
Remove Items from Template Homepage
I've never used Wordpress but am considering it for a responsive church website.
BEFORE I purchase space froom a webhost here's my question preceded by a scenario I want:
Scenario: I want my landing ...
1
vote
2answers
93 views
Is there a way of putting the facebook social plugins into page template php files?
I was wondering if there was any way of putting the features that come with the "Facebook" wordpress plugin, such as comments, recommend and subscribe, on my front page which I created using a ...
1
vote
2answers
433 views
add_rewrite_rule and template redirect not working
I have a strange problem , I have the following pairs :
add_rewrite_rule('^questions/ask/?','index.php?pagename=ask','top');
if(is_page('ask')){
$tname = 'add-question.php';
...
0
votes
2answers
39 views
How to edit contents of dynamic_sidebar()?
I know PHP well but I'm new to Wordpress. I got an incomplete Wordpress website. It has a static home page with an Aweber newsletter form. I tried digging into installed theme and in home.php I came ...
0
votes
2answers
42 views
Create a child Theme or custom Theme
I am new in WP but I 've good knowledge of HTML and CSS. However, my PhP knowledge merely covers some basics. I also have good knowledge of Joomla but I wanted to give WP a chance.
I need to make a ...
0
votes
2answers
450 views
Customizing get_the_excerpt() to specific length and “Read More” output.
I am costuming a template. There is a list grabbing the introduction from the first 1-2 paragraphs (all the articles from a category). If I set the excerpt to 295 words, sometimes the list grabs ...
0
votes
2answers
65 views
Using locate-template & shortcodes doesn't appear to work
For organisation, I'm trying to split up the functions.php file into separate files. In particular the functions for shortcodes in a separate file, with the shortcodes being defined in functions.php. ...
0
votes
2answers
64 views
Correct process for a new Page Template?
I'm creating a new Page Template.
I want to change margins, fonts, font sizes, and things like that.
I don't know if I've done things right. Is the following process that I've followed sound?:
I ...
0
votes
1answer
23 views
How can I setup custom templates for a meta-data query
I have a post-meta field for Neighborhood. I want to setup a url like: url.com/neighborhood/NEIGHBORHOOD-NAME
I know this would typically be handled by a CPT or custom taxonomy but it has to be done ...
0
votes
1answer
59 views
How can I include custom category and tag base in template files?
How can I include custom category and tag base names in the category and tag template files? Specifically, I'd like to include in the page title of category and tag pages the custom category and tag ...
0
votes
1answer
43 views
Load featured article once in a loop
I'm working on a WP-Touch theme and I have a template file that looks like this:
<?php get_header(); ?>
<?php locate_template( 'featured-post.php', true, false ); ?>
<?php ...
0
votes
1answer
180 views
How to create template for taxonomy results limited by Custom Post Type?
I've got a Custom Post Type with a Custom Taxonomy set up. So how do I create an archive template to display posts from that CPT, limited by taxonomy?
Here's the deal:
The CPT is called Shows. Each ...
0
votes
1answer
116 views
Category Template: Need to display different content on first page of archives
So my issue is that I need to create two versions of a category.php template. Now, I know very well that if I want to display posts from just one category, I duplicate category.php and call it ...
0
votes
1answer
60 views
Problem with permalink structure for Wordpress custom post_type archive template
I have looked at other similar answers to this question but not finding my way.
I am using Custom Post Types plugin for a custom post_type called 'product' and has_archive is set to 'true' in the ...
0
votes
1answer
50 views
WordPress Template works until page becomes a child
Ok so this is really strange. I do not consider myself a WordPress expert, but I am also not a beginner either. I created a template that works just the way I need it. Basically it checks for the ...
0
votes
1answer
320 views
Custom Post Type Archive Template
I have similar problem to this one: Custom Post Type Template - Archive
So, I have a wordpress custom post type called coupon. I try to assing the template to it by using archive-coupon.php, but it ...
0
votes
1answer
43 views
building a site with mostly custom styled, static pages.. advice needed
I'm putting together a site that will be compromised mostly of static pages with some dynamic content as well as a blog page.
In terms of naming files, what would be the best way to achieve this? My ...
0
votes
1answer
110 views
Show page title just from the first child-page in template
how can I do this:
Pages:
Home
- sub-1
-- sub-sub-1
--- sub-sub-sub-1
On home-page should only show the page-title of the first child-page like:
sub-1
I found this:
<?php $child_pages = ...
0
votes
1answer
60 views
Problem with custom page template and permalink
I created custom page template for news
template_news.php
with name
template name: news
and i created a page and configured for that page also i set permalink to
/news/%postname%
also i set ...
-1
votes
1answer
50 views
if and else statement not working on the iframe php page
i want to use if and else statement on iframe but it's not working
if and else statement not working on the iframe php page
<?php
if("p=947"){
?>
<iframe width="820px" height="1200px" ...