-1
votes
0answers
13 views

I am editing a plugin to sort list items alphabetically but can't seem to get it working. What am I doing wrong? [on hold]

I know modifying a plugin is a big no-no. But I'm sure most of you have done a few in a few cases. This happens to be the case. So I bought a plugin for a client to use on their website but turns out ...
-1
votes
0answers
21 views

Why wordpress plugin shortcode doesn't work properly with IE [migrated]

I recently working on a wordpress, plugin, it already reached a final stage, and all it left is cross browser compatibility, the problem is why shortcode doesnt work properly With IE. Below are My ...
0
votes
0answers
15 views

add bootstrap modal after login in wordpress

I'm trying to add a boostrap modal just after login in my website. I have my javascript: jQuery(document).ready(function($){ $('#after_login_modal').modal(); }); I have my div: <div ...
1
vote
1answer
26 views

How to get my plug-in, wrote in php, to refresh on its own every 5 minutes?

I wrote a plugin with custom widgets for the Dashboard. It retrieves information from an XML file, and display the information into the widget. The XML file will be modified a bit every few minutes or ...
0
votes
2answers
40 views

Filter custom post types by custom field using AJAX

I have a few custom post types (books, films etc) created with WP-Types. I then have a custom field called Genre, created with ACF. If a user selects "Books" from the dropdown on the frontpage, he ...
0
votes
1answer
52 views

Accessing an API with jQuery and AJAX

As a proof of concept I'm trying to access an API using jQuery and AJAX and posting the results to a page. After following some online tutorials and doing my best to put it all together, I have the ...
0
votes
0answers
26 views

how to transfer the post content from index / category/Archive page to another page with a form?

I have a wordpress site ! I want to insert a link below each article/post on the index/category/archive page which on click , i want to open a page which has a FORM with title and a message text ...
0
votes
0answers
27 views

wordpress - ajax communication

This is the first time I do the ajax and I must confess that I am confused. What I want to do is to take the value of 3 Select html to make a request to my database that'll get me a score according to ...
0
votes
2answers
80 views

Problems with plugin that fetches data from database with ajax

After some answers I have edited my code. This is my plugin structure stpl1 stpl1.php getuser.php In stpl1.php I have the following code: <?php /* Plugin Name: Wordpress Plugin Stijn 1 ...
0
votes
0answers
49 views

Using Ajax to autocomplete a form with data from db

I'm struggling to get the following: User fills out personal number Other input gets autocompleted with data from database As I have never made a plugin, help is greatly appreciated, my database ...
0
votes
1answer
59 views

How to get values from wordpress listings and use them in javascript array?

I'm trying to get values (latitude, longitude and an image) from the WordPress database and put it into a javascript array. Unfortunately I'm a newbie at Javascript and PHP! Here is the code I have ...
0
votes
2answers
53 views

How to set up php,javascript and css to allow for our finished product to be displayed within a page?

hey wordpress experts, We have coded a table using php, javascript and css which pulls up information from a text file and displays it in the browser. We have everything working as desired when we ...
0
votes
1answer
173 views

implementing a jQuery “click to expand” link in Wordpress [closed]

Novice coder - apologies for any stupid comments I've been trying to make a show more button on one of the div s on my Wordpress blog page. I've looked at a number of tutorials that all seem to agree ...
-2
votes
2answers
78 views

Set variable in javascript and using in my shortcode

my script is function($) { var google_map_address = $('#address').text(); $(function () { $('#gmap').gmap3({ marker: { address: google_map_address }, map: { options: { ...
0
votes
0answers
24 views

What is the right way to include my Ajax script in wordpress [duplicate]

I've searched around for a solution to my issue to no avail. So here it is: I have created custom meta fields in the user section within the admin area. There are two fields in total, both select ...
0
votes
1answer
127 views

Ajax - Call to undefined function get_option()

So I've been working in Wordpress lately with Ajax and I managed to get some stock data into my site from my database. However, I am now trying to use Ajax to load Wordpress posts into my left ...
0
votes
1answer
44 views

How do I convince this button to do something when it is clicked?

I'm trying to use ajax to give me an alert when I click a button. Eventually I want it to do some form validation, but for now I would be happy just to see the alert. I've read the docs and about a ...
3
votes
1answer
313 views

Wordpress Visual Editor Stripping HTML Changes

When I use the WordPress HTML editor to add icomoon icons like this: <span class="icon-shield"></span> and then switch to the visual editor and then back to the HTML editor, the icons ...
0
votes
0answers
55 views

Server-side processing of AJAX login

I'm using AJAX to login users on my website to avoid the need for a page refresh when they get their username or password wrong. Everything is done over SSL. My server-side processing: function ...
0
votes
1answer
44 views

Why this plugin is not working?

I am testing jQuery in my wordpress plugin. Two files 1. main_plugin.php 2. js_plugin.js (Both in the same directory HelloWorld). CODE: PHP FILE: <?php /* Plugin Name: jQuery Test Plugin Plugin ...
0
votes
0answers
33 views

How to automatically trigger a link if user has already been in the page?

I need a solution in php or javascript to make trigger a link to a internal #anchor when the user has visited the page for second time. can you help? the theme is a SINGLE PAGE one that shows all the ...
0
votes
1answer
109 views

Help with my first Metabox helper class

I'm working on a metabox helper class and everything works well, but the radio image field. The images show up, but they aren't clickable. // Print radio_image input. private function ...
1
vote
1answer
47 views

Wordpress Scripts Being Loaded in Footer

I've bought a theme for a Wordpress site. I noticed that the theme author has added the javascript to the footer for load time, but as I use Gravity forms, I understand that some of scripts need to ...
0
votes
1answer
592 views

Ajaxurl suddenly not defined

I am developing a wordpress plugin where I use an ajax call to submit form data, it was working fine and then all of a sudden I get a console error saying that ajaxurl (the url passed to the ajax ...
0
votes
1answer
158 views

Handling an Ajax form submit

I am developing a wordpress plugin that will create a contact form and then submit the details through an ajax request. jQuery.ajax({ type:"post", dataType:"json", ...
2
votes
1answer
440 views

White text on white background in TinyMCE when wp_editor is called in WP 3.9

One of the features of my plugin is to add a TinyMCE editor instance inside a meta box on the Edit Post screen. This has worked great up until 3.9, and I'm not clear as to what's going wrong. Here ...
0
votes
1answer
187 views

Social share buttons text shows up on post excerpts

I'm using the Social Likes plugin and there is one problem. The text on the share buttons show up in the excerpts. For example, I grabbed this off of one of the post excerpts: ...
0
votes
0answers
126 views

Load CSS files in header of Bones theme?

I'm using the Bones theme, and I'm trying to turn jQuery plugins into WordPress plugins. In the init.php file for the 'Chosen' plugin I'm converting, I've included this code: function chosen(){ ...
1
vote
1answer
84 views

Using TinyMCE in plugin?

I've successfully integrated DataTables Editor into WordPress as its own plugin. It loads successfully and I can edit a DataTables' table. What I'm trying to figure out is how to utilize WordPress' ...
0
votes
1answer
531 views

'Bones' theme: Load stock scripts in footer instead of header?

I'm using the 'Bones' theme in my latest WordPress site, and when I run the site through Google PageSpeed, I receive the following error: Eliminate render-blocking JavaScript and CSS in ...
0
votes
1answer
450 views

How do I get an external php page to load using javascript

There is a snippet of JavaScript code I would like to include in a WordPress page. What's happening is the code isn't loading properly and it's getting hung up somewhere in WordPress's native redirect ...
0
votes
0answers
16 views

Nivo slider not working [duplicate]

I have added nivo slider plugin to wordpress however it doesn't move past the git loading file.I believe the problem is in the way i am loading the jquery. I have included the javascript ...
0
votes
0answers
144 views

Adding new tab to WordPress editor next to visual and text tab

Hi, The topic title says it all, I want to add another tab next to visual and text tab. So far I found this topic here: Add new tab next to Visual and Html in wordpress text editor? and this New ...
0
votes
0answers
89 views

PHP random number in email

I have a Wordpress website where i am making a form so that when a user fills out that form he gets a confirmation email and receives a random order number. I have this PHP function which creates that ...
0
votes
2answers
106 views

Dynamic Gallery

I'm building a single page website and that means that all the links need to call for post content dynamically. I found this tutorial and with the help from some folks from StackOverflow I managed to ...
0
votes
0answers
102 views

inline script : prettyPhoto setting deeplinking to false not working

This is suppose to be simple but I can not figure it out. I'm using WordPress prettyPhoto plugin for my project and I'm trying to set deeplinking to false (deeplinking:false). In the Chrome console, I ...
1
vote
0answers
23 views

How to return Javascript variable to wordpress [duplicate]

I use this Javascript code to create a dialog box to ask some thing to user and after decide what to do depending of the response. function dialogToCont() { var retVal = confirm("Do you want to ...
0
votes
2answers
223 views

Nice scroll to wordpress

I am converting html5 to wordpress Theme. I want to use custom scroll for wordpress. The code DEPENDENCIES It's a plugin for the jquery framework, you need to include jquery in your scripts. I will ...
1
vote
1answer
1k views

Create Image Uploader for Widget

I found this post// Use Media upload in custom widget on wordpress 3.5 I'm not experienced in any of this so I pretty much just copied the code he provided into my own functions.php file. I uploaded ...
0
votes
0answers
16 views

Show only items from user_role in code

I need add this code to this code http://itweb.sk/script.txt $user = new WP_User( $item->post_author ); if ( !user_can($user->ID,'directory_4') ) { echo "hello"; ...
0
votes
1answer
109 views

Trying to fix multiple category drop down

I'm having some problems trying to fix my category drop down on the website i'm developing. Basically one drop down filters has "Sort by Location" and the second one is "Sort by Price" The first one ...
0
votes
0answers
46 views

Trying to customize wordpress drop down categories

I'm having some problems on how to display the categories that i want in wp_dropdown_categories. Here is an image of the drop down - Here is the code for the dropdown - HTML: <?php ...
0
votes
0answers
35 views

form to generate url

i have a form on my site to generate url and it works good but the user should wait until the whole page is loaded to be able to use it properly , i think that happens because i use window.onload and ...
0
votes
1answer
179 views

2nd page displaying the exact same posts as my first page (minus the very first post)

Site Links: http://manofmany.com & http://manofmany.com/page/2/ I'm seeing my 2nd page displaying the exact same posts as my first page (minus the very first/latest post). All other pages 3,4,5 ...
0
votes
2answers
492 views

Pass a PHP variable (loop-audio.php) to jQuery function (js/script.js)

I've searched a lot for this and I seem to get different answers. In my situation, my jQuery function has to use a PHP variable from a different file. How can I accomplish this? Clear and simple ...
1
vote
2answers
131 views

Putting PHP variables into javascript [duplicate]

I've created a simple theme options page for my site. The options page contains three input fields. I can output the the fields by using get_option. The three fields are called using the following: ...
2
votes
1answer
456 views

Ajax template: how to handle head section

I know it's easy stuff, but I'm new to this and I can't understand which is the best approach. Background The template I'm working on is a dual theme Desktop/Mobile, UA Sniffing based. Now I just ...
0
votes
3answers
1k views

Wordpress Ajax always returns a 404 error

I just got this code from a tutorial. I can't seem to get it to work. HTML (home.php) <form name="myform" id="myform" action="" method="POST"> <!-- The Name form field --> ...
0
votes
2answers
65 views

how to make my website secured

i have a php code inside my website to a quotation form that has java script for making name , telephone number and email rquired fields before submiting the form and its working fine but a few ...
1
vote
2answers
646 views

Run shortcode at certain resolution

I've gone a roundabout way of trying to ask a question about this here: Loading shortcode with ajax but figured it might be worth asking the fundamental question of what I am trying to do without ...