Tagged Questions
0
votes
0answers
20 views
How to delete in the pages the pre tag added automatically by Wordpress
i have been looking around but there is not a specific answer to my issue.
I have set up a slideshow by Wordpress, then i paste the short code in the page where i want to display. The slideshow is ...
0
votes
0answers
34 views
featured post show in category base
i have 2 featured post in 1 div id, 1 big class and 1 small class . i want big featured div are post in category base.. big featured post code show in below.
<div class="main_feat">
...
0
votes
2answers
33 views
Fatal Errors on pluggable.php
I was looking to change the "Wordpress" name in all of my sent mail. In the past I have customized my Wordpress backend to display my desired email. But I have downloaded a new plugin that has altered ...
-1
votes
1answer
58 views
How to create Down Vote button in functions.php [closed]
I just read your answer How to enable users to down-vote in this simple voting counter (that uses the post meta)? regarding the creation of a down vote functionality for WordPress with PHP and jQuery ...
0
votes
1answer
23 views
Theme my Login plugin, how to update fields
I'm using the Theme my Login plugin for a client project and I'm having trouble updating profile fields once a user has been registered;
I followed the instructions here but they didn't seem to have ...
0
votes
1answer
28 views
How to call custom function outside from the admin page?
I've created a function but i have some problems with it...
echo get_option( 'my_function', 'custom_logo' );
I try to use this in my code but it returns me an array not a string.
When i use echo ...
0
votes
2answers
18 views
How to modify the default feed via a function
I am trying to add a functionality to the default wordpress feed. The problem is i managed to do this modifying the rss feed php file. The problem number two that i have in mind is when wp gets an ...
2
votes
1answer
32 views
Why do filters/actions require an argument count?
I was just looking at plugin.php trying to answer the above question and I couldn't work it out. The actual code that calls filters is this:
do {
foreach( (array) current($wp_filter[$tag]) as ...
0
votes
2answers
65 views
making php value numeric
I used some of this code from this page on Stack Overflow:
Using wp_query is it possible to orderby taxonomy?
It's about the function to be able to sort a query by a taxonomy value. Although it works ...
0
votes
1answer
22 views
How to access function from outside of a class within this class in WP plugin?
I am developing a WP plugin called e.g. DD_Awesome_Plugin and this is my code so far (simplified version without additional code logic within class functions):
class DD_Awesome_PLugin {
public ...
0
votes
1answer
14 views
first instantiated SimplePie object cosumes 5mb?
This following lines causes 5mb memory consumption. It appears large to me.
if ( ! class_exists( 'SimplePie' ) ) include_once( ABSPATH . WPINC . '/class-feed.php' );
new SimplePie();
...
-2
votes
0answers
25 views
How can I create a simple/editable window/area on my homepage? [closed]
I have been on more than 4 wordpress theme/plugin related forums to try and find a solution for my request. I am building a jumbo mortgage website with WordPress.
I need an ultra simple homepage ...
0
votes
1answer
17 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
13 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 ...
1
vote
2answers
49 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
12 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 ...
1
vote
2answers
39 views
How to remove the excerpt in the Dzonia Lite theme
I am using Dzonia Lite theme in my website. My front page shows all the latest posts. I am getting an excerpt at the end of each post.
Could anyone suggest me how to remove that excerpt at the end ...
0
votes
1answer
54 views
Requires PHP version 5.3.0
When I try to install "Background Manager" plugin I am getting this error "The plugin "Background Manager" requires PHP version 5.3.0 or better, but version 5.2.17 was detected". Could anyone suggest ...
1
vote
1answer
31 views
Word Count Function Preventing Permalink Editing
This code counts the number of words in an excerpt and adds it to the excerpt meta box in the post edit screen: http://snippi.com/s/sn3hk5p
However, something about this code is preventing the ...
0
votes
2answers
59 views
Strip <p> from <blockquote> or something better?
Looking for some help on something that has me really contemplating not using blockquotes for the moment!
I have this code:
<?php
$show_after_p = 1; $content = apply_filters( 'the_content', ...
0
votes
1answer
31 views
Add a select-option to the default widgets
I would like to add an extra feature to one of the default widgets so that the user can choose from the select-field to either align the widget to the left, center or to the right.
How would I be ...
0
votes
0answers
26 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 ...
1
vote
1answer
62 views
How to remove a metabox from menu editor page?
I am not sure if it is much different for any page but I am wondering how to remove a metabox from the appearance>menu page without having to go into the wordpress core files and remove it. Is there ...
1
vote
1answer
128 views
How to add default images into theme customizer image control?
I am trying to figure out how I can pre-load a theme customizer image control with images I have selected. Is their a way to point the control to a directory so they automatically show up in the ...
0
votes
1answer
13 views
How can i remove the icons, or change that icons
How can i remove wordpress multi site, or how can i change that icon?
http://i39.tinypic.com/6z206a.jpg
Thanks in advance
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
0answers
12 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
31 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 ...
1
vote
0answers
38 views
Way to add captions to gallery images by code
I am creating posts by using wp_insert_post function. It works fine as I provide values in array required. Sometimes it is required to create a post having gallery. Without any problem, it also works ...
0
votes
1answer
47 views
How to change pagination base from slash to query form?
Can this function...
function custom_pagination_base() {
global $wp_rewrite;
$wp_rewrite->pagination_base = 'p';
$wp_rewrite->flush_rules();
}
add_action( 'init', 'custom_pagination_base' );
...
0
votes
0answers
55 views
User driven content problems
I am trying to build a website that will allow users to post from the front end. I need to be able to have the user enter a title, a category, and tags. For the content of the post, I would ideally ...
0
votes
0answers
29 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
39 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
60 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
57 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
35 views
Exclude category
I want to exclude a category from showing in a function, but cannot figure out how to do it for my specific code as below. I want to make it so that any post that is in the "featured" category, does ...
0
votes
0answers
35 views
Wordpress adding in site URL to header links
A little information: I am developing a one page theme that uses posts as sections on the main page. I have created code that allows users to add a menu item in the post page from a meta box when they ...
0
votes
0answers
56 views
How to tell if string is null or empty in meta value? [closed]
I am trying to figure out how to find out if a string is null or empty in php. The place I am pulling the value from is a meta value that is stored from a meta box on the post page.
I want to check ...
0
votes
1answer
44 views
How can I create a menu items from meta box based on users input
I have created a metabox that takes a name that the user can give as an additional name of their post. I am wondering how I can automatically create a menu item based on the name the user input into ...
1
vote
1answer
22 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 ...
0
votes
1answer
78 views
Get post meta retrieving wrong value
I created a custom meta box with a textbox where the user can enter a custom value in as an additional identification tag. I thought I had it right but when I try to retrieve the value it is giving me ...
0
votes
0answers
40 views
How can I clear the theme mod settings?
Ideally I am looking to add a button to the theme customizer that allows the theme to reset to default settings, although that may be asking for too much in one question so I am wonder if anyone knows ...
2
votes
2answers
80 views
How can I add dropdown widget/box to admin post page?
I am trying to figure out how to add a dropdown widget to the post page. The reason I ask is because I would like to be able to have a few different post classes that the user can select while making ...
0
votes
0answers
38 views
Cant get theme to change footer color through theme customizer
I am having an issue trying to configure the theme I am working on to allow the footer color to be changed. So far all of my other options work so I am geussing it is an issue with the way I am ...
0
votes
2answers
65 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
1answer
71 views
How to use a variable as a function name?
I'm trying to loop a function that will let users create a few custom posts, but I have a problem with the function name. Here is an example:
How can I write this:
function ...
0
votes
0answers
34 views
Create custom permalinks / rewrite
How can create a custom permalink in my functions file that would include a template page
when you go to a custom url: http://example.com/members/settings
I have a template page at ...
0
votes
2answers
80 views
Is it possible to disable a function of a parent theme?
I was wondering whether it is possible to completely disable a function that is called in a parent theme's functions.php and if so, how? (Of course without deleting the function. Rather by adding ...
1
vote
1answer
32 views
Remove class that has been added by parent theme
My parent theme generates the following class in body: style-cupcake. I don't want that. The best way to get rid of this is by adding my own functions in a functions.php file in my child theme, right?
...
0
votes
0answers
37 views
Registration Fail Redirect Problem
We use two registration links allowing users to register for different roles:
/wp-login.php?action=register&utype=subscriber
/wp-login.php?action=register&utype=contributer
The subscriber ...