Tagged Questions
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
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
1answer
39 views
Some problems calling a function into sprintf() inside functions.php template file [closed]
I am new in PHP and WordPress and I am personalizing an existent template and I have the following problem.
In the function.php file of the template I have the following function:
function ...
2
votes
1answer
85 views
Issue with get_theme_mod returning a blank value instead of the saved value
I have what seems to be a rather troubling issue with the get_theme_mod function in the latest version of Wordpress. Only on particular servers (of which meet all Wordpress requirements) the function ...
0
votes
0answers
22 views
How to pass CLASS function with arguments to add_action? [duplicate]
Possible Duplicate:
Passing a parameter to filter and action functions
This works:
add_action('hook', array($this, 'someFunction'))
These not:
add_action('hook', array($this, ...
0
votes
1answer
36 views
Can't get custom user meta to show in header
I have used Pie Register plugin to add a "Phone" field.
I tried every method in the book (that google fetched for me, so far) to show it but it shows an empty array although the field is not empty ...
0
votes
0answers
45 views
Function to hide wordpress theme's wrapper [closed]
I am trying to hide the main div containing the theme in my wordpress. I am just testing something. I can simply use css to display none the div, but some themes have the wrapper with a different id ...
0
votes
0answers
91 views
Warning: printf() Too few arguments in php [closed]
I get this error on my error log
[10-Jan-2013 00:31:03 UTC] PHP Warning: printf() [<a href='function.printf'>function.printf</a>]: Too few arguments in ...
0
votes
1answer
112 views
Set WordPress Default Template
I'm using the Options Framework Theme to put together my options page and would just like to know how would I set up/call the Default Template - for whichever one the user has selected.
For example, ...
7
votes
1answer
114 views
Shared functionality in plugins and themes
I recently started to develop plugins and themes and I found that I need to use several functions of on both.
Sometime I think about to check if function / class exist before declared as said on this ...
0
votes
1answer
593 views
Add a Second Menu to a theme that only support 1 menu
I am no programmer but I can usually work stuff like this out when I read the code.
I have a theme called Infinity which only supports 1 menu. I know how to do CSS etc but I can't find how I would a ...
0
votes
2answers
66 views
Overwrite category head title
Is there any way to overwrite a <head><title>Category title</title></head> tag?
Let's say i have a "Videos" category, when user point's his browser to ...
1
vote
1answer
42 views
Want to be able to sign up subscribers as authors
I want to be able to select a subscriber an author of a post in the admin so it displays their name as having written the post, but I do not want to give them any additional privileges (if they login ...
3
votes
1answer
39 views
which is the function that removes accented vowels?
Which is the function WP uses to convert words like "voilĂ " and "novitĂ " to "voila" and "novita" in category slug? Can I recall it in my theme?
2
votes
1answer
210 views
How to generate and display widgets areas dynamically?
I want display different content in sidebar for every category, but as I create new ones I have to create the area for it. How can I have widget areas for every category and also display them on theme ...
4
votes
1answer
69 views
Hide Twenty Eleven Theme From Themes Page
Is there a way to hide the Twenty Eleven theme from the "Themes" page in wordpress? I have 10 themes for clients to choose from and i don't want them to be able to see the Twenty Eleven theme or be ...
3
votes
2answers
975 views
Need to create a Theme demo site that features multiple themes
I would like to create a site like: http://demo2.woothemes.com/?name=sentient for my clients, so that they can see the range of themes I offer. I own many templates from different providers, and ...
2
votes
1answer
246 views
Set WordPress Featured Image For All Post Slugs Matching Image File Name in Specified Directory
I have a bunch of old posts on a blog that I would like to assign a featured image to.
I have retrieved all the images I would like to use for each post.
I saved each image file name after the slug ...
1
vote
2answers
1k views
How do I “unhook” / de-register jQuery so that it's not called as part of wp_footer();?
I need to "unhook" jQuery from my wp_footer() ... it's being called automatically and I'm looking for something I can add to functions.php which prevents it from being called a second time in the ...
0
votes
1answer
129 views
Theme Demo in live Site
I don't know how to explain this question but let me try,
Just Imagine I've a website called xyz.com
and in xyz there are 10 themes uploaded and in homepage i'll show name & screenshot of all 10 ...
7
votes
1answer
893 views
Using classes instead of global functions in functions.php
In many themes I've seen (including TwentyEleven) and in the examples I've found online, when building the functions.php file for a theme all functionality is declared in a global scope. To clarify, ...
3
votes
5answers
486 views
Is there any global functions.php file which works for any theme?
Is there some global kind of functions.php file that works for any theme?
The problem is here:
When I change a functions.php file in any theme, I need to take care of two changes: First, I need to ...
0
votes
1answer
152 views
What function actually renders the wp_admin_bar ? How can I call it?
What function actually renders the wp_admin_bar? And how can I call it? I want to print out just the nodes / DOM for the actual menu. It would end up rendering something like this:
<div ...
-2
votes
2answers
644 views
Removing the default sidebar from admin panel
I would like to remove the default sidebar from my template, it is not needed and I do not want to confuse the user that will be using the admin panel. I have created my own sidebars that are a bit ...
0
votes
1answer
62 views
Removing the custom_image_header from wp_head
I am looking to remove the custom_image_header from the wp_head. I would like to use this in a more manual way throughout my theme. I understand the general approach for this is to include CSS in the ...
1
vote
1answer
134 views
Help with Wordpress Query
I'm sort of a noob when it comes to Wordpess; I've only recently started building themes and I've run into a wall. I'm trying to feature 3 different articles at the top of my site using wpquery and ...
0
votes
1answer
152 views
Functions.php error - when trying to change the theme
After trying to replace the wordpress theme , it says that the functions.php file in the theme catalogue - the last line - is not ok
Parse error: syntax error, unexpected $end in ... ...
3
votes
3answers
4k views
Disable plugin / plugin action via theme
I have installed the Google Analyticator plugin on my site. I am also using the MobilePress plugin to serve up a theme designed for non-smart-phone mobile browsers. I have set up Google Analytics for ...
0
votes
2answers
171 views
It's okay if I do not write add_action()
I downloaded various themes on net and I found on functions.php they write something like this
Example to remove inline comment style.
function demo_remove_recent_comments_style() {
add_filter( ...
0
votes
1answer
53 views
How would I got about calling a php file every time someone publishes a new post?
I've got a custom php file that I want to call every time someone publishes a new post. How would I go about doing that? Can I write it into the functions.php of my theme?
0
votes
1answer
51 views
What is the most efficient way of adding additional functionaliy for admin only
I'm trying to figure out the best approach to add additional functionality that will only be utilized by admins via /wp-admin.
What's the best way to implement so that resources aren't being wasted. ...