Themes create the public (front-end) interface for a WordPress site.
1
vote
0answers
43 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
56 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
2answers
1k views
MapPress Easy Google Map in Jquery Tabs Problem
I am using MapPress Easy Google Map with the following code in my custom theme:
<?php
$mymap = new Mappress_Map(array("width" => 600,"height" => 300));
$mypoi_1 = new ...
2
votes
1answer
309 views
Show a user their recently viewed posts
I am working on a project that showcases a number of products, so i'd like to add a "recently viewed product" selection that keeps track of the last 5 or so viewed products or posts.
I saw this ...
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
0
votes
2answers
50 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 ...
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
72 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
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
0answers
60 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 ...
3
votes
3answers
598 views
“Quick Edit” > update clears out my custom meta values
I have two custom meta fields that I've enabled for each post, scottb_customHeader and scottb_customTitle
These work fine as long as I'm using the full edit feature to edit posts. However, when I ...
0
votes
0answers
60 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
46 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
56 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 ...
3
votes
3answers
507 views
How to enqueue script if widget is displayed on page?
I created a widget that uses a jquery plugin, and I used is_active_widget to enqueue the script, it's working fine but it's also including the script even on pages that doesn't show this widget.
so is ...
3
votes
1answer
1k views
how to display full post with pagination on home page
I am using the 'Hatch' theme. I'm familiar with HTML/CSS but not with WordPress, first time working with this.
I have my homepage showing recent posts and that's good.
However, I want to make a ...
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 ...
0
votes
2answers
74 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 ...
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?
...
1
vote
1answer
38 views
How to show single post page as home page
I want to start a funny images website but I have come across a dilemma. I want the website to display 1 post ( not the thumbnail) but the full post on the home page. (the most recent post). Similar ...
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 ...
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
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 ...
0
votes
1answer
53 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
57 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 ...
2
votes
1answer
53 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
2answers
820 views
Show specific category posts on Genesis framework home page
My site has Genesis framework and a child theme. I want to show specific category posts on my home page content area. I used the simple post query
...
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
20 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 ...
0
votes
1answer
21 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 == ...
2
votes
1answer
44 views
How to hide fields from my user profiles
I want to hide the fields link nick name, first name, last name, etc.
I could not find an answer in the codex and I do not want to touch the core files. Is there any solution for it?
0
votes
0answers
21 views
Problem with Image Test before theme submission to WordPress.org
I tried to submit a theme to wordpress.org and I got a response that the theme was not approved because it failed an "Image Test".
Image Test: Wide Image, Resized In Editor should be resized in ...
0
votes
0answers
25 views
Theme Options, Check box not unchanging
Every Option in my theme option will save, weather you enter text, delete text, click a radio box or even check box. How ever, once check boxes are clicked they do not seem to un-check.
I have ...
2
votes
1answer
581 views
Doubled titles when using All in One SEO with custom template
I created a separate template, attachment.php, for displaying image attachments. It's relatively simple; basically a stripped down version of single.php. Everything is working great except that when ...
0
votes
1answer
29 views
How to close open divs in post loop
I want to add some additional HTML markup to specific posts in a loop. For example in the post loop, I want to wrap the post 3, 4, 5 in two divs .extra and .extra2
I want to display post in following ...
1
vote
1answer
99 views
Update a custom theme with Subversion?
Before I start: I'm not sure if this is feasible so any guidance, suggestions, criticisms are welcome.
I'm looking for an easy way to deploy my Wordpress theme code from my development environment ...
0
votes
2answers
23 views
Is there a WordPress boolean for “theme_customizer_active()”?
Looking to add an action to wp_head but only if the user is in "theme customizer" mode. Does anyone know if there's a conditional for this?
0
votes
0answers
25 views
Self Made Theme not showing up in Avaliable theme options [closed]
I made a custom theme in my local wordpress. I added a style.css in the folder and an index.php. I also added a Images folder. But my theme is not showing up in avaliable themes! What can be the ...
1
vote
1answer
3k views
How to add posts to custom menus?
I'm just beginning to work the "Custom Menu" functionality that was introduced in 3.0 into my theme.
I like everything about this new capability and API, with one exception: Why no posts?
I can ...
0
votes
1answer
40 views
The normal loop with different styles doesn't work in search.php
This code in the search.php file does not work:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php if( get_post_type() == 'post' ) {?>
<div id="post">
...
0
votes
3answers
2k views
Unhook jQuery from WooCommerce via `functions.php`?
So I am using the http://woothemes.com/woocommerce/ plugin for eCommerce and it's registering jQuery local and conflicting with my default jQuery call from Google CDN.
It took a long time but I ...



