Themes create the public (front-end) interface for a WordPress site.
0
votes
1answer
35 views
How to create a custom template to admin dashboard
I was trying to create a template to customize my WP admin dashboard, not only a css mod but a entirely renew to my customers.
I've successfully created a page template for a custom login page, and ...
0
votes
0answers
8 views
Pagination and multiple loops
Right, so what I currently have is a page split into three using a css grid. The third column is the sidebar, The first two each have a query for posts to display, and create a nice grid of posts ...
-1
votes
1answer
22 views
query posts in wordpress
I want to filter my query results just before the_loop starts in word press. I only want the results having term_id or term_taxonomy_id equal to 1.
...
2
votes
1answer
22 views
Best practice way to implement custom sections into a WordPress theme
I'm having trouble figuring out the best way to implement custom sections in a WordPress theme. For example I'm making a theme that will have four featured sections on the homepage. These sections ...
0
votes
1answer
460 views
Remove the <ul> Tag from wp_nav_menu in Wordpress 3.4.1
my problem is the following:
I want to remove the tags from the wp_nav_menu. I already found different posts about it here but they don“t seem to work for me. Here is what I did:
First I ...
-1
votes
0answers
25 views
Wrong Page Title in h1 output, Strange Breadcrumbs
I use Wordpress 3.5.1 .
In origin I have used this template: http://html5blank.com/ .
Now, after modifications, I have a problem.
I use WooCommerce Plugin.
Q : in h1 (<h1><?php the_title(); ...
0
votes
1answer
21 views
wordpress taxonomy results
I am using taxonomy.php to fetch some rows from database. On taxonomy page the function get_queried_object() shows that I have got the right results from database but wordpress loop if ( have_posts() ...
1
vote
3answers
24 views
How to make Home Menu( Front Page) use index.php instead of page.php
I needed a "Home" menu item in my wordpress website, so I created a new page and named it "Home", added it to my main menu item and then from Reading Settings I selected the "Home" as Front Page.
...
-1
votes
1answer
24 views
getting id of page
I am using taxonomy.php to display records from database. The function get_the_ID() in taxonomy.php gives the ID of first record from database.
My URL is ...
0
votes
1answer
412 views
A two column loop with one lead post
I got a loop from internet (I forgot the site) for two column post view. It has a nice CSS for it too. But skipping that for the question now.
<?php $counter = 1; ?>
<?php ...
1
vote
4answers
161 views
WP_Query returns no results
I'm using wp_query to create a custom query that retrieves search results but it is returning 0 results. Here is the code:
$query = 's=the&posts_per_page=5&paged=1';
$custom_query = new ...
0
votes
1answer
58 views
Create and style menu
I have been assigned with the task to create a menu that can be added or removed from wordpress admin. Right now the menu is hard coded into the templates. But I want to use default menu function ...
0
votes
1answer
105 views
Creating a Link Text like Submit Button in Admin Page
I'm making an admin page for my plugin and I'd like to make a text link designed like the form button of admin pages.
I tried this but didn't work well.
<a href="" cless="button-primary" ...
0
votes
0answers
27 views
Custom widgets in theme option page
I'm trying to create a simple theme options page that uses widgets to change the layout of content on the front page.
I started off by using meta boxes not realizing that the position is based on ...
0
votes
1answer
25 views
Consequences if using PHP include TEMPLATEPATH?
I have created a Theme Options page using Settings API so now I need to style it using CSS.
Instead using function like this inside functions.php
function mytheme_add_init() {
if ( is_admin() ) {
...
0
votes
1answer
11 views
One button to change all settings in theme customizer?
I have been attempting to create a theme reset button for the theme customizer that automatically removes all of the theme_mod settings. I have tried multiple ways to do this and have never been able ...
0
votes
0answers
7 views
Extended image control not showing up in theme customizer
I have an extended image control for the theme customizer that adds in an extra panel and lists images I have hardcoded into the extended control.
Now the issue is that it is not showing up in the ...
0
votes
1answer
32 views
How to obfuscate theme directory URLs
I'm rewriting this question because I realized it was totally unclear what I want to do. I'm looking for a way to "obscure" the theme directory so that absolute URLs that reference things like images ...
0
votes
0answers
18 views
How to get dynamic data in page hierarchy?
I'm trying to mimic the page hierarchy rules of WP. I'm checking for the existence of certain files, then requiring them if they exist -- in the same order as I understand the hierarchy rules. Here's ...
-1
votes
1answer
32 views
Converting static website to wordpress
I have a static website http://www.powersolutionindia.com/ which i want to add blog functionality.
There are approximate 10 static html pages in this website, just i want to add seamless blog to this ...
1
vote
2answers
32 views
How to remove the cufon script from Dzonia Lite theme [closed]
I am using Dzonia Lite theme in my website. When I try to remove the cufon script from my functions.php file the sliders that were present in the website are not working.
Colud anyone suggest me how ...
0
votes
0answers
10 views
How to utilize theme customizer live preview in this situation?
Short version: I am using the theme customizer in my theme and javascript for the live preview. I am not sure how to implement the javascript for php(as seen in code excerpt).
I am creating a theme ...
0
votes
0answers
19 views
How to disable controls in theme customizer?
Edit: I have rewritten the question in hopes I will get a reply from someone who knows the theme customizer.
I am trying to figure out how to disable setting controls in the Wordpress theme ...
0
votes
0answers
7 views
How to export/import theme customizer settings?
I am wondering if it is possible to export theme customizer settings(theme_mods) to be imported into another install of the same theme. I know that the settings are saved into the database so I am ...
0
votes
1answer
30 views
Creating Theme Options Page
I was creating a theme options page based on a tutorial by Tom McFarlin at TutsPlus and I'm a little stuck. I can't understand where the code goes bad here, because it doesn't allow me to access the ...
1
vote
2answers
365 views
Get list of months with posts
I am trying to add a filter on my custom theme based on post month, similar with the archives but with some differences.
What is the best way to get a list of months in witch we have posts?
Thanks,
...
0
votes
2answers
32 views
Permalinks problem with custom theme
I am pretty much learning by doing a custom theme from scratch (not a child theme), and have had much trouble with permalinks.
In the permalinks settings page on the wp-admin, if I put any option ...
0
votes
1answer
225 views
Ajax URLs without #!, how to prevent falling into single.php on load or reload?
I'm trying to make things properly with a single page ajax powered portfolio. I've read that there is no need of #! to make it crawlable by google. So I have clean URLs that updates with .pushState ...
0
votes
1answer
32 views
Wordpress plugin with its own “site”/theme
I am currently starting a plugin development project and ideally I'd like the plugin to run using its own custom theme as if it was it's own separate thing.
Is it possible to include a theme within ...
0
votes
1answer
40 views
Why is the Settings API is not saving my array of options
I am writing a set of classes to easily create options pages accessible via submenus of the standard WordPress menus and a way to easily create options for said menus. The way I am wiring it is via a ...
1
vote
1answer
77 views
Import media to online WordPress from local development
I have a site being developed locally and I want to import the contents to an online installation. I used wordpress "import" but it cant get the media files. Is there any "wordpress" was of doing this ...
0
votes
1answer
48 views
Wordpress with broken paging page 3
I am working with a blog page that uses the following query:
<?php
$paged = (get_query_var("paged")) ? get_query_var("paged") : 1;
...
-1
votes
2answers
860 views
category.php + pagenavi + custom post types + /page/2 = 404 errors
I'm seriously going to go crazy if I dont figure this out. I have tried a million different things from googling,a nd I've been staring at this same problem for days now.
Pagination for a custom ...
1
vote
1answer
155 views
Primary navigation menu & footer not showing in category / tag page
I tried to find a solution for primary navigation not showing in some pages, ie. archive.php.
I found one from here but it's still giving me notices.
I'm using Reverie Theme in WordPress ...
0
votes
0answers
14 views
Creating Theme Settings Page [duplicate]
I am trying to create a custom theme settings page for a wordpress theme, so that I may hopefully continue to reuse it on the future websites I make. Unfortunately, I'm falling at the first hurdle. ...
0
votes
2answers
577 views
How to add nofollow to wp_nav_menu
I need to add an option in my theme options panel to set a specific custom menu's links all to nofollow.
Does wp_nav_menu() allow this or does it require a custom walker to manually ad ...
2
votes
2answers
1k views
Get category slug and display it on a query_post
I just read "How to create option page for wordpress theme" in wp.tutsplus.com - I have a problem with getting categories .
there is two parts to my question
- Part A - Get category slug and ...
0
votes
1answer
26 views
wpautop on section
I removed automatic formatting in my WP site by adding this to functions.php:
remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );
Now I need to add it back into ...
0
votes
1answer
17 views
how does offset works on Pagination? (get_results)
I followed this link and created my own custom query with pagination.. but I don't really understand how the offset works,
Pagination with custom SQL query
the pagination does not work well. and I'm ...
0
votes
1answer
32 views
Why enqueue styles on hook
Why do we need to enqueue styles on a hook, why not just enqueue them straight in like this?
wp_enqueue_style( $handle, $src);
the codex page gives an example of using a hook but doesn't explain ...
5
votes
3answers
269 views
Get 'page' number with infinite scroll
I added infinite scroll support of the Jetpack plugin to my own theme using this tutorial:
add_theme_support( 'infinite-scroll', array(
'container' => 'content',
'footer' => false,
...
1
vote
1answer
34 views
get_the_tags() not iterating through for/while loop, but will with foreach
I'm having a very peculiar issue with Wordpress right now that I can't understand, and hopefully someone here will have experience with it to help solve it.
I'm trying to iterate through the array ...
0
votes
1answer
30 views
Remove specific published page when theme deactivated
I am working on developing a theme which automatically creates a page on theme ativation. But the problem if when the theme is switched and activated again, it recreates the page.
is it possible to ...
0
votes
1answer
34 views
Search Form Not Working
www.milknhny.co.uk/ClearWatch
Im using a basis of the Twenty Twelve theme and im using the below script (yes i know that the wrappers are not correct as yet)
However its defaulting back to the main ...
2
votes
1answer
29 views
How to highlight the current page in the nav menu?
I'm customizing a WordPress theme for my school, and I'm a bit annoyed by the fact that the current page in the nav menu is not indicated.
For example:
You can clearly see that I'm hovering over a ...
0
votes
1answer
35 views
adding navigation to genesis themes
i'm following a tutorial provided here to add navigation menu, but not able to find out set of #nav in my style.css & my theme is eleven40. What we need to replace to get navigation menu?
0
votes
1answer
43 views
How to display admin bar when using wp_use_themes = false?
So I'm using Wordpress in a 'themeless' manner, i.e. not using a "blog" template. My site files are in the root directory (not in the theme folder), and Wordpress is installed in its own /wordpress/ ...
0
votes
1answer
32 views
Adding a gallery to my first theme
I have been spending a lot of time the past few months researching on how to create my first theme. That said most tutorials/books only discuss static sites and I want to go about this well prepared. ...
-1
votes
0answers
13 views
Problem aligning widgets in a row [closed]
I have added two widget areas at the bottom of the homepage content at http://79.170.40.241/refthecoffeefactory.co.uk/
I am having a problem aligning them horizontally. I also came across the same ...
0
votes
0answers
35 views
Does wordpress add their own classes into nav menus?
I am building a theme and have noticed that when I create a menu with just html or have it dynamically add menu items based on pages it looks how it was meant to be. Although when I change the code to ...