Tagged Questions
0
votes
1answer
43 views
Form Security: nonce vs. jQuery
I am trying to create a methodology for submitting forms on my WordPress site. In the past, I have used WordPress nonces in order to secure form submission, but I like the idea of using jQuery to ...
0
votes
1answer
20 views
Replacing WordPress Icons (menu,icons32, etc)?
I want to replace wordpress admin sprites. I recreated the images and looked answrs for icon replacement using jquery and simply with CSS BUT what about ones link icons32-2x.png where I can't find the ...
0
votes
1answer
21 views
Covert Wordpress Blogname into JQuery
Here is the blogname in php <?php $blog_title = get_bloginfo('name'); ?>
I want to convert it to javascript. The file I want the blog name is in a .js file so I cant create the variable with ...
0
votes
1answer
21 views
POST from jQuery to PHP
I have a form that passes field values to jQuery, which validates the fields and creates the variables being sent in data: {} in the snippet below.
$.ajax({
type: "POST",
url: "<?php ...
0
votes
1answer
36 views
How to change links in the 3 main categories, on widget category, to a javascript function call
I'd like to know..
How could I change my 3 main categories links, so they call a javascript function?
I'm using Snapshot Theme from WooThemes.
Here's the current state of the website:
...
0
votes
2answers
54 views
Pull GetOption() variable into jQuery dynamically created html
I have a page with the following markup in the site theme footer:
<div id="modalpopup"><div id="inside"></div></div>
I have a variable in the WP db I can retrieve via ...
0
votes
0answers
19 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 ...
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
0answers
8 views
floating div stop at a div [migrated]
I have a floating div on the sidebar that scrolls with the page. Is there a way to add code that makes it stop when it reaches the footer?
See code in action: http://openbayou.staging.wpengine.com
...
0
votes
0answers
40 views
jQuery vs. $ - Creating jQuery scripts in JavaScript in WordPress using External Libraries
I am trying to utilize Trent Richardson's Date Time Picker (see here).
I am trying to get the selected time when the popup closes, so I am using the following code (in an external .js file):
...
1
vote
0answers
40 views
Using window.onload with Ubermenu
I am using a plugin to place this code on specific pages. But it is not firing correctly.
Has anyone had experience working with Ubermenu, WP and jQuery? Do I have to call jQuery into my ...
0
votes
2answers
51 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
47 views
How to execute a function from function.php in a javascript?
I have created a custom menu function in functions.php, but I need to execute it in a container that is created by a javascript. Is this doable? The js is outputting a container called ...
0
votes
0answers
52 views
Customizing a php generated link
Good Day
I am using Wordpress, and I am using a breadcrumbs plugin (Breadcrumb NavXT). Now it works great, exept that I would like to customize the way it links to a specific link:
Now here is the ...
0
votes
1answer
127 views
reorder a WP_Query, using a dropdown
I have the following loop used to display posts by category & I would like to to re-order them based on a dropdown selector
if (!isset($qry))
$qry = new ...
-1
votes
1answer
123 views
best way to communicate between php and jquery/javascript
I have a custom post type "pakket", in which I've put all kinds of data in the taxonomy terms. This custom post type has about 50 items, each with their own values for taxonomy terms. For example:
...
0
votes
0answers
102 views
Tabs don´t work on my theme [closed]
I have a tabbed widget here. It won´t work like should with jquery-tabs. Theme is "Sprout". It loads each tab under each other instead of just changing content.
Javascript
...
0
votes
0answers
24 views
Image screen not working [closed]
I'm getting white screen when I go edit in Wordpress admin edit page for any images.
So when I insert an image to Tinymce under edit page/post then click on image icon (on top left of the inserted ...
0
votes
1answer
71 views
Adding wp_list_categories to a specific div that was appended using jQuery
Due to the way my projects menu is coded/styled I'm having some difficulty figuring this out.
I have appended a div to my menu using jQuery, and I want to be able to include an external php file that ...
1
vote
0answers
139 views
Security - Ajax and Nonce use [closed]
I'm developing a site which posts a number of ajax calls from jquery to PHP and returns data from PhP to jquery.
Everything is working, but i'd to know if my approach to handling the calls is ok, in ...
0
votes
1answer
101 views
Royalty-Free Sliders used in theme development
I am wanting to develop a premium Wordpress theme, and would like to know what is the best way to go on choosing a slider. I'm not skilled enough yet to write one from scratch.
The ideal situation ...
-4
votes
2answers
94 views
Adding jquery using php function
I was turned down with this question because I get a php error and my question revolves around jquery, but when I take out the JQUERY everything works fine. * Again I'm creating a wordpress plugin. I ...
0
votes
1answer
118 views
JQuery prepend a function
I am trying to see where I went wrong with this code. I was trying to prepend the avatar and user meta above the admin menu. I get header already sent messages as well since the code is just right ...
1
vote
1answer
276 views
Adding a slider captcha to the comment system
QapTcha is a draggable jQuery captcha system. I have been trying to create a plugin to make it work on the Wordpress comment system. I found a plugin that is already doing this but it is outofdate and ...
0
votes
1answer
173 views
Loading a post's content, into a div outside the loop, when it's title is selected in a list
I am building a site in wordpress where at a certain part there is a container that has a list of post items (see it as a menu/sidebar), and an empty space where I will load content. When you click on ...
0
votes
1answer
30 views
Cloning add_settings_field() with jQuery
Is it possible to setup one add_settings_field() in an options backend and then use jQuery clone function on the front end and be able to create multiples of whatever and save that in an array?
I've ...
1
vote
2answers
684 views
Most efficient way to add javascript file to specific post and/or pages?
I am wondering what the most efficient method is to add a javascript file specifically for a post and/or page.
Here are a few solutions I came up with:
Switch to HTML editing view and post your ...
0
votes
1answer
31 views
displaying the categories post
I have this php code below for displaying the post from the specific categories.
<ul id="sliderx">
<?php query_posts('category_name=slideshow&showposts=10');
while (have_posts()) : ...
0
votes
1answer
121 views
How to keep track of when a vote is cast?
I have setup a great voting system on my website, but since I want to sort the top rated posts by week, month and alltime...I now need to able able to keep track of when a vote has been cast. Could ...
0
votes
0answers
123 views
Need a plugin or code for a text rotator with animation [closed]
Here's what I'm trying to do: on my homepage (using the landing page template from Prose, a child theme from Genesis), I have some text, one word of which I want to rotate through 15 different words ...
-2
votes
1answer
456 views
Use ajax response in PHP function
Ok, so I'm working on a plugin and just ran into a problem.
Here's what I'm doing:
1. Using a metabox with Plupload to upload an image to an upload dir in the plugin folder.
2. Upon upload success a ...
1
vote
1answer
857 views
Bulk Image upload and one image for each post?
I have around 3000 photos, want to upload on WordPress. Is there any way to bulk upload all the photos as one image for each post ?
1
vote
1answer
470 views
How to put JQuery/Ajax inside shortcode?
The purpose of this plugin is to create a list that users can modify with up or down votes. The shortcode is supposed to display the list on a page and use JQuery to fadeIn and fadeOut while updating ...
0
votes
1answer
386 views
what does $options = get_option('test_theme'); do?
I'm trying to set up theme options so they save with AJAX, I found this tutorial http://return-true.com/2010/01/using-ajax-in-your-wordpress-theme-admin/
it's calling
$options = ...
0
votes
1answer
807 views
Change Query Arguments (filter) with jQuery/Ajax or PHP?
I have a pretty complex wordpress-site for travelling. There's an "archive-hotels.php", a template for the custom-post-type "Hotels". Inside the CPT is a taxonomy called "City", so we can do this: ...
0
votes
1answer
625 views
how to include a simple jquery file into a wordpress plugin
ok this is my first time to include jQuery into wordpress and it has taken me the 2 full days trying to figure this out. No matter how many articles I read I cannot find a perfect example.
Ok so this ...
0
votes
2answers
374 views
How to include this jQuery File in wordpress?
Ok I have this jQuery that I have tested in a static html page and it works fine.
How would I include jQuery to work on wordpress in a plugin?
So this is the html page.
<head>
<title> ...
3
votes
1answer
354 views
Real time Duplicate title check
On my website there are a lot of authors and they are all writing about italian 'scene' so sometimes it happens that two of them write the same post or use same title so what I'm looking for is a way ...
1
vote
1answer
297 views
Error with Image Slide plug-in/ s3slider in WP
I'm using Wordpress Version 2.8 (Can't upgrade where I work); and I used 'Emerald Stretch' theme as the basic bone structure of what I'm developing. (Which ultimately will be a responsive wordpress ...
0
votes
2answers
483 views
How to load previous or next attachment with jquery ?
When i am on the single.php page, i show the first image attachment.
then i would like to load the next (and previous) image attachments without reloading the page.
so in single.php i started with ...
1
vote
0answers
190 views
Suggestions for Developing a Flipbook Style Theme? [closed]
I'm currently working on a custom WordPress theme that will be a showcase of several different stories, "books" if you will, that contain individual chapters. I'd like to present each of the stories ...
0
votes
1answer
247 views
Is there a function to list all uploaded images? How can I add one?
Is there a PHP function that will return an array of all of my uploaded images? Or, failing that, how bout just my uploaded files?
The end goal is to display a slideshow on my homepage: have it ...
1
vote
1answer
1k views
Colorbox ajax loading of outside HTML content works perfect on localhost but not on server
I am trying to render content generated by a php file in [jQuery Colorbox][1] through AJAX in my WordPress site. The PHP resides on the same server in the same domain. It works perfect when I run it ...
0
votes
2answers
389 views
WordPress plugin admin page - using WordPress function in linked php file
Asked this question on StackOverflow and they directed me over yonder... nice place ya got here =)
I've been developing a pretty simple WordPress plugin, and wanted to do some live validation of ...
1
vote
2answers
553 views
problem with ajax and the path to the php page
i would like to call a php page from an Ajax method : the alert works fine, the code as well has been tested outside of wordpress, but here it seems that the php page is never called.
I found some ...
1
vote
1answer
983 views
Can't use get_results() in ajax query
I'm using a jquery ajax call to get certain data from wpdb and I'm getting the following message:
<b>Fatal error</b>: Call to a member function get_results() on a non-object in ...
1
vote
3answers
4k views
Add a Jquery Datepicker to custom field in post edit
I would like to add a custom field that is set by a jquery datepicker ui in the post edit panel. Im new to wordpress, so Im not sure how to go about adding something like this. I haven't had much luck ...
0
votes
1answer
322 views
How to add drag and drop functionalities to a div inside option panel
Hi to all it's a few days that I'm trying to add some new functions to my theme option-panel, you can see my questions here:
How to add an export function to a custom Option Theme Page
Add a preview ...
4
votes
1answer
1k views
How can I fetch loop of post titles via AJAX?
I have a list of the most recent post titles in sidebar.php. Here is an example of how that code looks:
<?php $args = array('posts_per_page' => 20); ?>
<?php $sidebar = new ...
1
vote
2answers
1k views
wordpress site | All-in-one-cufon IE Issue
I have a site where i'm using the All-In-One Cufon (Wordpress Plugin), but having some issues getting it to render properly in IE.
The website: [removed]
The Problem: It works fine so far in Firefox ...