Themes create the public (front-end) interface for a WordPress site.
0
votes
0answers
28 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
25 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
30 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
votes
0answers
24 views
theme options panel [closed]
plz i need help to create simple options for a theme
this an example :
in theme i have this code
<div id="ticker-wrapper" class="no-js">
<ul id="js-news" class="js-hidden">
<?php ...
1
vote
1answer
34 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
36 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
38 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
97 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
44 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
47 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
35 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
42 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
21 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"
...
8
votes
1answer
219 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
42 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
53 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
38 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
44 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
49 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
65 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
65 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
59 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
56 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
45 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
54 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
26 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
54 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
69 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
75 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
52 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
26 views
Header links also appearing in the footer
In my menu area of the word press admin I have access to place links in both the h "main menu" and the "footer links"
register_nav_menus(array(
'main_nav' => 'The Main Nav',
'footer_links' ...
3
votes
1answer
56 views
Should I use set_transient or update_option?
I want to store some Twitter API data in WordPress. After every hour, I want to fetch new data from Twitter, and update only if the data is successfully retrieved from API (sometimes the API gives ...
0
votes
1answer
41 views
wp_deregister_script was called incorrectly
So apparently I am now allowed to do the following in the admin, ON my theme options page and only ON my theme options pages:
public function load_admin_jquery(){
...
0
votes
1answer
33 views
How do I get from search_theme_directories() to the $stylesheet (name) for switch_theme()
I have a theme. It depends on a plugin. If you try to activate the theme and the plugin isn't installed, then I want to switch_theme() to some other (random**) theme in the search_theme_directories() ...
0
votes
0answers
20 views
Adding new Settings Field to Appearence -> Menus using the Settigns API
I would like to add a 3rd text field to the admin page for custom menus called "Link Description" beneath the Navigation Label and Title Attribute Fields.
I know that I need to use the ...
0
votes
1answer
19 views
Extending arrays in parent theme without completely overriding the files
I am new to all child-theming things and trying to override an array value which is declared in one of the php files. I also don't want to override the whole php file, because it has many other ...
2
votes
1answer
52 views
How to store widget fields data as an array?
I am creating a widget, it needs to store about 10 IDs. Right now I'm using following field method to store each of the ID in a separate field. It stores data of each field in a separately in the ...
0
votes
1answer
20 views
Adding Media button to only pages
I have created a media button as such:
// Create a media button for pages
function aisis_page_button_link(){
global $post_ID, $temp_ID, $iframe_post_id;
$iframe_post_id = (int) (0 == ...
