Themes create the public (front-end) interface for a WordPress site.

learn more… | top users | synonyms

0
votes
0answers
34 views

Wordpress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache

I have been working on a theme for a few days and when I realized my JS file for my theme customizer wasn't updating I decided to clear the cookies and cache, and wow that was problematic. As soon as ...
0
votes
1answer
37 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?
2
votes
1answer
60 views

Why is styling comments so complex?

I've been building a theme completely from scratch and after a straightforward process up to this point, I've reached the comments.php file. Again, nothing too out of the ordinary, until this: ...
2
votes
1answer
37 views

add_filter and remove_filter added before and after wp_query

I have just started with WordPress Development, and found following block of code online (in some tutorial) function filter_where( $where = '' ) { // posts in the last 30 days $where .= " AND ...
1
vote
1answer
49 views

How can I let templates choose which stylesheets are enqueued?

My theme's functions.php hooks into wp_enqueue_scripts to register a couple of stylesheets that are used by various site pages. Here's a simplified version of my configuration: ...
0
votes
0answers
11 views

If user removes section with theme customizer I want it to add padding to footer

I added the ability to the theme customizer for the user to remove a section that is above the footer. The issue is when the section is removed it is causing the links in my footer to move up. How ...
0
votes
0answers
25 views

Problem with function not executing

I am sorry for the long post but I wanted to be thourough in hopes someone could help me figure out this issue. I have been trying to get it working for 2 days with no such luck. I would appreciate ...
0
votes
1answer
44 views

Using page-id-{ID} from body_class() in local dev, versus live staging

Not sure this is a question suitable for this forum, but I'll try: I think it is pretty convenient targeting elements in css/jQuery for a specific page by using the page-id-{ID} generated by ...
0
votes
1answer
46 views

Custom post type isn't working

I just built up a beta environment for testing my new Wordpress site. I didn't migrate the database; I did my own installation again and ported over my theme (it's a simple theme) to my new instance. ...
0
votes
0answers
30 views

Use Jetpack Infinite-Scroll in search and category pages

I like Jetpack's infinite scroll a lot and would like to use it on the search-page and category-pages as well. Is that somehow possible and if yes, how?
0
votes
0answers
26 views

How do I link a button I created in theme customizer to a function?

I created a button in the theme customizer and I want to use it to execute a function? All I can find is using controls to add theme settings such as CSS and text. Although this button is to clear out ...
0
votes
0answers
32 views

Created custom control from theme customizer, where should I add code it will control?

I have created a custom control for the theme customizer which is a simple button and label. I am going to be using it as a theme reset button that will clear the theme mod settings to their original ...
1
vote
1answer
39 views

List of all theme customizer control types?

I have been looking through the theme customization API documentation and google to simply find out the names of the control types already built in to the theme customizer. More specifically I am ...
0
votes
1answer
39 views

How to add button to top of theme customizer?

I am trying to figure out how exactly I can add a button to the top of the theme customizer. The spot I am talking about is where the "close" and "save" buttons are. The ones that are above everything ...
0
votes
1answer
40 views

Mamp pro permalink issues. Pages keep reverting to index.php

So I pulled a site down to my local machine to do some work on it. Copied the files, find/replace on the database to update the url, added a host. Everything worked fine until I changed the permalink ...
0
votes
3answers
99 views

Custom post type single-{custom}.php not working

I made a custom post type with the machine name special_media_post and wordpress is simply not seeing the single-special_media_post.php. I am at a complete lose. It keeps defaulting to the index.php ...
0
votes
1answer
45 views

How to hide <pre> and <table> content from auto-generated excerpts?

Auto-generated excerpts just take the first x characters from the post content and cut that off at a certain point. When there is a table or pre element in that part, the excerpt looks rather useless ...
0
votes
1answer
50 views

Custom post type and custom taxonomy archive inaccessible

I've created some custom post type let say: post_type_1 post_type_2 Those post types are related to each other, every post_type_1 has parent of many post_type_2. Then I created a custom taxonomy ...
0
votes
1answer
37 views

Disqus plugin outputs script as literal text

After installing the Disqus plugin, their JavaScript code started popping up as plain text on my site in several places. My hypothesis is that it pops up at the end of any loop involving the_post(). ...
0
votes
0answers
14 views

Widgets input/content not visible

I created a theme, and when I drag and drop a widget in the widgets area the widget's content is hidden. This is what I attempted: Switch with other theme and activate my theme (doesn't work) copy ...
0
votes
1answer
38 views

Not able to call class in NHP framework

I have downloaded fresh framework and installed on my local server. I copied options folder and nhp-options.php inside my theme directory. Then I called the class globally by global $NHP_Options; ...
1
vote
1answer
20 views

Trying to retrieve post meta

I have created a meta box that allows users to add an additional name/id to their post. From what I can tell it is adding the meta information correctly because when I edit a post that has a custom ...
1
vote
1answer
46 views

Compact pingback list with favicons

On a blog with pingbacks and trackbacks (pings) enabled I want to show just a link with link text and a favicon of the external site in a compact list: no date, no text. How can I do that?
0
votes
0answers
26 views

Adding custom widgets to theme sidebar on activation

I have a custom widget in my theme with the id of "widget_my_box_menu" and I'm trying to add that widget to my theme's main sidebar on theme activation. The main sidebar's id is "home-sidebar-widget" ...
9
votes
2answers
262 views

Does the functions.php file ever get called during an AJAX call? Debug AJAX

Trying to figure out an issue a fellow programmer is having. I was wondering if the functions.php file get called at all when you do admin side AJAX? I know that when you do an AJAX call a part of ...
1
vote
0answers
44 views

HTML added to editor when deleting shortcodes in Chrome browser

Example: [shortcode1][/shortcode1] [shortcode2][/shortcode2] In the above example, using the google chrome web browser, while in visual mode in the post editor, highlight shortcode 1 by ...
0
votes
0answers
44 views

Post archives link yields a 404 Not Found

I'm writing my own WordPress theme and I'm having problems with the archive page. My archive link yields a 404 Not Found. I get this link from get_post_type_archive_link("post") and it just adds ...
0
votes
0answers
57 views

Seriously advanced tutorials? [closed]

Is there any place where there are seriously advanced tutorials on Wordpress theme/plugin development? I'd probably say that I'm at intermediate level (in the sense that I can create template pages, ...
0
votes
1answer
40 views

Clipper theme needs database?

I have used clipper theme for my coupon site designing. is it necessary to create a database for this or shall i upload my wordpress files to the webserver? Happy Coding Dinesh
1
vote
3answers
45 views

Force index.php have_posts() loop to exit if no sticky posts found

I'm currently using the code below to list sticky posts on my index.php. However, when no sticky posts are present, its loading the latest posts (up to the number specified in "settings > reading > ...
0
votes
2answers
52 views

Theme not calling Jquery properly

I am developing a theme and I have called jquery along with other JS files from a theme-enqueue.php file. For some reason only the Jquery file that is hosted on googles servers is adding the theme URL ...
0
votes
0answers
67 views

Make Add media button accessible to all in front end

I am trying to add an interface in which any user(including non logged in) can create a post from the front-end. I am able to bring the default wordpress editor to front-end using the wp_editor ...
0
votes
2answers
73 views

Theme Customizer not loading JS for live preview

I am currently working on adding options to the theme customizer. For the last two hours I have been trying to get the live preview working and I am trying figure out why my theme isn't loading the ...
0
votes
0answers
63 views

Post thumbnail to append post content via ajax click event

I've searched hi and dry, tried various tutorials but I just cant get anything to work and its been a good 3 weeks now :( I have a loop that displays custom post thumbnails in a grid using this ...
0
votes
0answers
63 views

Call to undefined function add_menu_page() on theme activation

I am attempting to activate a theme that works perfectly on one WordPress install. I have matched the plugins installed up and copied the theme over but when I go to activate it I get... Fatal ...
0
votes
0answers
11 views

get_stylesheet_uri() seems to be returning the wrong path. Where is this coming from? [duplicate]

I've got Wordpress 3.5.1 setup like Mark Jaquith's Wordpress Skeleton repository. (https://github.com/markjaquith/WordPress-Skeleton). I'm using Roots as the theme, but the stylesheet directory is ...
0
votes
0answers
30 views

How to add demo content to theme from outside plugin

I am devloping a new Wordpress theme that requires the installation of an outside plugin, called Revolution Slider. I would like to create a set of demo slider images for the user upon theme ...
1
vote
0answers
48 views

Am I not understanding plugins?

So I am trying to make it so that you can load a class from a child theme, theme or plugin using the following: class AisisCore_Loader_AutoLoader{ protected static $_instance; protected ...
0
votes
0answers
33 views

Theme doesn't show sidebar

A strange thing has happened. I've uploaded my theme (that worked perfectly before and still works prefect on my local server) and there are some issues. First it couldn't load prettyPhoto files and I ...
0
votes
0answers
29 views

Archive Listing Page Theme

I am working on a wordpress template that needs a 'special' category listing page. First of all, the page kinda needs to look like this: http://quicksnaildesign.com/example-closed.jpg When you ...
0
votes
1answer
57 views

Use different single.php file based on condition

I am customizing my WordPress site's theme and i need to use a different single.php file based on the condition. Here is my user case, i need to design a competition page where i need to show entries ...
0
votes
0answers
13 views

Force cache refresh on editor-style.css (no longer works since WP 3.4) [duplicate]

function my_theme_add_editor_styles() { //THIS NO LONGER WORKS SINCE WP 3.4 add_editor_style('editor-style.css?' . time()); } add_action( 'init', 'my_theme_add_editor_styles' ); As of ...
0
votes
2answers
19 views

Plugin or script to apply updated media settings to all featured images

I need to know if there exists a script or plugin that will add a button the "Settings > Media Settings" that will rebuild all thumbnails to match the current media size settings. The problem this ...
0
votes
2answers
61 views

Adding code to the function file

I would like to move my large php functions out of the index or template files and into the function.php file. Would it be something like this? function grab_code(???) { ??? .= '<div>some ...
1
vote
1answer
27 views

Is it possible to save more than one image to an option?

The following code allows you to upload multiple images but only one is saved to the option. Can multiple images be saved to the option as an array or would I have to create separate controls? ...
0
votes
2answers
56 views

Multi Site Setup, Child Themes, Getting Style Sheet Directory

As the title says, I have a multi-site setup and the apperance is customized with child themes. The main site: themainsite.com Secondary site foo.com When you look into the source code of ...
0
votes
2answers
78 views

pagination for a custom loop with multiple post types

I realize that this seems to be a common problem and I've read through a lot of the posts but it's just not making sense. I was wondering if someone could take a look at my code. What I am trying to ...
0
votes
1answer
36 views

How to use shortcode inside of shortcode in theme

I am trying to place a shortcode inside another shortcode within a page template, however the various attempts I've made seem to not do anything. Here's how my code looks now - <?php echo ...
4
votes
1answer
76 views

function_exists call in function.php

In the function.php file of the twentyeleven the setup function checks to see whether it exists before running it: if (!function_exists('twentyelevent_setup')): function twentyelevent_setup() { ... ...
0
votes
1answer
55 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( ...

1 2 3 4 5 26