0
votes
1answer
39 views

How do I update WooCommerce template files in my theme? [closed]

WordPress beginner here - my site seems to have some outdated template files which I think are the cause of some functionality issues the site is experiencing. Particularly, there are bundled ...
0
votes
3answers
39 views

How can I see what template parts are being called for rendering the viewable page?

I have a theme where the developer used get_tempalate_part() a lot, and these parts are scattered across theme subdirectories as well as in directories in a plugin that was created to assist with the ...
-1
votes
1answer
24 views

Best practice to create required pages

Some times, when we work on custom wordpress themes, we need required pages. For example - custom login page. Some times, when user change slug, page template or something else - it a very difficult ...
0
votes
2answers
39 views

add jquery file if a certain page is included

I was wondering if anyone could help my by explaining if it is possible to enqueue a javascript file only if for example homepage.php is included. what i have tried to do inside homepage.php: class ...
1
vote
0answers
42 views

Plugin templates vs Parent Theme

I've been building a plugin using a WooCommerce like template system, where the plugin houses the default templates, but allows for overriding via a template folder in your active theme. It just ...
0
votes
1answer
34 views

Problem with multiple menus in theme

I am having trouble trying to get my new theme working. I have all 4 menus working on my test server but when I move the theme to the live server and set up all but one (main-menu) will not show up. ...
0
votes
2answers
132 views

Load child template based on parent

I have child page templates that need to be automatically applied based on the parent template. I'm wondering if there is anyway Wordpress handles this. This is the solution I came up with. (in ...
0
votes
3answers
105 views

Having some trouble properly displaying Custom Post Types in templates

I have a child theme of Twenty Thirteen and I've setup Custom Post Types for several items. They are showing up in the Dashboard, I can create the Custom Posts and they show up in various categories ...
0
votes
1answer
116 views

How to create a WP theme that use BootStrap? [closed]

I am pretty new in WordPress and totally new in BootStrap development (I have beginning to study BootStrap yesterday) and I have the following doubt about how create a custom WP template that use ...
1
vote
1answer
84 views

Assign single template to multiple custom post types?

I have a number of custom post types that I would like to display with the same template which I have created initially as single-photography.php in my theme. Is there any way to assign this template ...
0
votes
1answer
42 views

pass html code to worpdress

I'm starting with wordpress and I have some doubts. I created a proprietary design from requirements that had. This design is made with html and bootstrap. Now I want to start using wordpress step ...
0
votes
0answers
31 views

Enable WP to accept standard jQuery code embeding between the <body> tags [duplicate]

I don't know what is the reason that WP is not accepting the standard embedding technique from jquery website ( http://learn.jquery.com/about-jquery/how-jquery-works/ ): <!doctype html> ...
-2
votes
1answer
128 views

Twig+Wordpress how to use array arguments inside a function?

I already asked this on stack overflow but then I found this place. I've searched but didn't find any answer to this. I'm using a theme that was developed using the Twig template system. I don't ...
1
vote
1answer
137 views

is_archive() content being shown instead of is_category()

My Issue: If I browse to http://mysite/category/mycategory, the if (is_category()) content isn't displayed, the if(is_archive()) is shown instead. My code: archive.php: <?php ...
0
votes
0answers
35 views

Why does my installation default template to index.php when archive.php and category.php exist?

I have set up a theme that started off as a copy/paste of twenty-thirteen, because I'm familiar enough with that theme and would like to build from something I am familiar with. That theme includes ...
0
votes
2answers
181 views

How to make different custom post layouts?

I am new to wordpress, and have encountered some difficulty in making my own custom layouts. I'm using _S framework (underscore.me) as well as Custom Post Templates plugin. I'm using custom fields ...
0
votes
1answer
20 views

How to link to the page displayed by home.php?

I am working on a theme that is using front-page.php as a front-page.php and home.php to show blog posts. What I can't figure out is how to link to the blog page that is displayed with home.php. ...
1
vote
1answer
83 views

Theme development question regarding layouts

I am developing a WordPress template (or rather trying to) and need a bit of help/advice. I have a template that consists of a header (inc nav), footer, main content area. The main content area has ...
1
vote
3answers
6k views

How to insert a logo in the header?

I am pretty new in WordPress world (I came from Joomla) I am finding some difficulties to insert a logo into this WordPress test site: http://onofri.org/example/ I want put my logo in the header of ...
2
votes
1answer
34 views

Returning Variables back into a template

If I put a function that I want to use in a template I can put it into functions.php function myfunction(){ echo 'My String'; } add_action('myfunction','myfunction'); and in a template file put: ...
0
votes
1answer
116 views

How to use get_template part in the plugin?

I was using the entire template in the plugin, but I would like to use get template part, so that I can reuse the header and footer in the original template. The code is like this: add_filter( ...
0
votes
1answer
1k views

How to retrieve an image from a post and display it before excerpt of a post? [duplicate]

I'm customizing a WordPress template and I would implement the following behavior in the excerpt posts visualization in my homepage: If a post contains images (one or more), in the homepage post ...
0
votes
1answer
76 views

How to add menù section to my WordPress template?

I am pretty new in WordPress blog and I am developing a blog with this template: http://scorejava.com/wordpress351 As you can see at the top of the page there is a "menù" that only show the page in ...
0
votes
1answer
108 views

How to differentiate the homepage structure from the category page structure in WordPress template?

I am very news in WordPress world and I am finding some difficulties with creation of a personal template. I want implement a blog like this one (that is using WordPress): ...
0
votes
1answer
51 views

Which hooks are essential for post templates?

Im in the process of building a very custom theme and Im beginning to work on the post templates, but I dont know which hooks are essential for them. So like, I've seen (but cant remember where)some ...
0
votes
2answers
72 views

How to create a template for Pages?

In Wordpress, when creating a page, it shows some options for Template under Attributes, such as: Default, Links, One column no sidebar, etc. Is there a way to add more custom templates to show up ...
1
vote
2answers
241 views

Retrieve the template directory URI via global or get_template_directory_uri() every time?

One Wordpress function I happen to use frequently is get_template_directory_uri(). While I tried to minimize or avoid its use where I can, I still happen to have more than one call to this function in ...
1
vote
1answer
645 views

Check if password protected post is visible

Is there anyway of checking if a password protected post is visible / not visible? I want some thing that says this; If the post is password protected (that parts fine) and the correct password ...
0
votes
1answer
352 views

Replace single_template filter with what for default posts?

I was going through a tutorial on Justin Tadlock's blog but it uses the single_template filter, which was removed in 3.4. The codex says to use {$type}_template but if I use "post_template" with the ...
2
votes
1answer
566 views

How to set a fall back template for a custom post type in a plugin?

My custom plugin creates a custom post type, and I want to theme my own "single-my_custom_cpt.php" file. However, I want to store it in my plugin folder, and allow that it be over-written in the ...
1
vote
2answers
118 views

Static Front Page problem

My theme uses the front-page.php file to display a number of items on the front page including a slideshow and some featured items. I have also designed it so the static front page as set in the ...
0
votes
3answers
150 views

Need help with adding templates (archives and sitemap) to Wordpress child theme

I recently switched themes, and my old theme had templates for sitemap and archive (in fact the archive was one of my most viewed pages.) When I switched themes the link to the archive and sitemap ...
1
vote
4answers
63 views

Do i need to keep all the default WP templates files in a theme?

I have a general question about the themes development. When I develop a theme for distribution (free or commercial) is it a better practice to keep all the default templates file in my theme even ...
2
votes
2answers
149 views

Why are theme templates organized as multiple point of entry PHP files instead of reusing your theme's index.php?

I've started to develop my own theme in the past couple weeks (and extracting WP functionality here and there in the past year), and I'm finding the structure of the WP templates awful redundant. ...
0
votes
2answers
204 views

What is the advantage of using home.php over index.php for the front page

I am building a theme and wondering whether or not to include a home.php file or not. The theme (which will not be available to the public) will be mainly used with a static home page and separate ...
0
votes
2answers
2k views

get_query_var() and permalinks

I have a permalink structure that looks like this, %category%/%postname% I have a category.php template coded up and and trying to pull of the post of a certain category, so for example my URL may ...
2
votes
1answer
1k views

Why does my short code get executed before other content?

I have the following text in a page. As you can see my shortcode is right at the bottom but somehow when the code runs, the out put of my shortcode is inserted at the top of the page instead of ...
1
vote
3answers
2k views

Add a #hash to the links in my custom menu

I have created a static frontpage where I load in the content of all my pages. Now I have a normal custom menu, but the links refer to the pages, for example: http://mysite.com/about Now the I want ...
5
votes
3answers
3k views

Is it possible to stop selected plugins from loading on certain template pages?

I have a template page that has form on that is only used once in my site. The form uses form validation using jquery validate plugin (such a great plugin). Once the cart66 Plugin is loaded, the form ...
3
votes
2answers
1k views

How to get Images included in Post

is possible to get images added to a post programmatically? I am working on custom template (my first) and I need to display Images added to a post in specific way.(first image as title image and the ...
0
votes
1answer
32 views

Is there a template tag I can use to link to the archive page corresponding to the month that a post was published on?

For example, if the post was published on may 5th 2011, then clicking on "May 5th, 2011" would show all posts published in May 2011. How can that be done?
1
vote
1answer
482 views

Toggle Sidebar Display

I'm developing a WordPress theme that allows users to toggle the visibility of the sidebars using Javascript in the same way that wikis allow users to show or hide a table of contents. When a user ...
3
votes
2answers
535 views

Add a preview to a Wordpress Control Panel

I'm trying to create a new wordpress template and inside it I added a Control Panel, inside this control panel there is an option that allows user to choose where he want's to place a on a map, I try ...
-1
votes
2answers
288 views

How customizable is a self-hosted WordPress blog compared to a Blogger blog?

I currently have a Blogspot blog and I'm thinking of making the leap to a self-hosted WordPress one instead. Everything I've seems to suggest this is the best way to go for the best possible ...
0
votes
2answers
336 views

Is there any tool to find lines of codes responsible to generate front-end HTML elements?

Dreamweaver CS5 is very useful to design or modify a Wordpress theme. It inspects CSS elements in Live view (after seting up a test server), but its unable to trace original wordpress code responsible ...
1
vote
1answer
159 views

How can I detect hierarchal relationships beyond children (grandchild, great-grandchild, etc)?

Often times, a custom theme for Wordpress will require a dynamic content that reflects a relationship to a top level page of a site. Is there a Conditional Tag that will check if the current page is ...
12
votes
3answers
7k views

What's the difference between home.php and index.php?

If I create a home.php file, it seems that WP will use that instead of index.php, so index.php is never used? What are the differences between these two template files (located in the theme folder)? ...