0
votes
2answers
24 views

How to cancel Wordpress' action/filter when using OOP with anonymous callback

Most of the wordpress plugins I found is functions based, for example, the offical akismet plugin function akismet_init() { global $wpcom_api_key, $akismet_api_host, $akismet_api_port; // ...
0
votes
0answers
10 views

Plugin to encrypt url in base64 [on hold]

hello friends hope to help with this plugin created for decoding base64 urls ... The problem is that encrypts urls. I hope I can help change it. <?php /* Plugin Name: Links Plugin ...
0
votes
1answer
35 views

How to redirect to a page after the form is submitted

I am New to Wordpress.I am creating a Plugin Where I have to import a csv File to database.Uploaded and Entered data Successfully.But my Problem is once the file gets uploaded it shows a blank page ...
0
votes
2answers
37 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
33 views

“Allowed memory size” problem [closed]

I duplicated a wordpress website. On the new domain, the TYPES plugin causes big problems. I get several "Allowed memory size of ... bytes exhausted" error messages. They show up when I try to do the ...
0
votes
1answer
29 views

How to prevent plugins from loading jQuery

I recently downloaded a free plugin from wordpress.I want to remove the plugin from loading jQuery because you experts know that it is already loading from wordpress header.php file. The plugin is ...
0
votes
1answer
14 views

What is the process for reimplementing a back up WordPress?

WordPress noob here. I'm helping a friend migrate her WordPress themes and change servers. I've already moved the WP across servers, but now I'm working on changing the theme on my localhost dev site ...
0
votes
0answers
14 views

BBpress doesn't work when certain code is added in an activated plugin

I have a forums page that displays my forum index. Whenever I add the following part of code the bbpress doesn't display my forum index and there is a screen that only includes some text and a search ...
0
votes
0answers
16 views

Fancybox appears different

I am using Fancybox for Wordpress on my Wordpress site. The fancybox is used two places - in blog posts and in product pages on my WooCommerce shop. The blog started using Fancybox automatically after ...
0
votes
2answers
32 views

How to delete remain data in WP database after deleting custom post via admin interface

I'm trying to create a plugin that will delete pictures and additional info from database on deleting custom post (sp_venue) via admin panel (wp-admin/edit-tags.php) In the plugin I'm using this to ...
0
votes
0answers
29 views

Saving custom form fields

I am creating a plugin. So far I have created a menu and a page containing the form. I want to save these form fields for any user with 'Doctors' role. I think it should be saved under wp_usermeta ...
0
votes
0answers
23 views

Wordpress and advanced custom fields subcategory inherit category color automatically

Hi is it possible if I added a subcategory and inherit the parent category's color? currently im using advanced custom field plugin. i dont know to show it inthe front end that if the user left the ...
0
votes
1answer
45 views

Posting code inside the post instead of in the template file using shortcode

I am using two plugins one of which is Thumbs Rating which have have a shortcode like this for example in order to display the thumbs rating option: The code bellow is to be used in the templates ...
0
votes
1answer
26 views

Wordpress plugin creating sidebar on the theme/page

I am creating a plugin and I need it to create a sidebar on the page, but I have no idea what to do or what to search. So once my plugin is activated, the sidebar needs to appear. The color and text ...
0
votes
1answer
46 views

W3 Total Cache Can't Really Detect Things

I'm running Apache + Cpanel with PHP installed as an apache module. I've been trying to setup W3 Total Cache to see the php and apache extensions, and I've been having trouble. It detects curl and ...
0
votes
1answer
25 views

Wordpress widget in custom theme

I created a custom theme and writing a basic widget for my wordpress based website. If I paste the code in functions.php the code works fine, however if I paste the code in a separate file and keep it ...
0
votes
1answer
67 views

How to add php stylesheet to admin section instead of admin_head hook

how can we do the below code using separate file let say admin-style.php add_action('admin_head', 'custom_admin_style'); function custom_admin_style() { $bg_color = get_option('custom_color'); ...
0
votes
0answers
10 views

How can I disable the comments page display from one of two comment fields

I have a Wordpress blog with a second textarea added as a additional field. Both comment boxes are generating comments in the post. The additional textarea comment box is populating the ...
0
votes
0answers
35 views

How to link PHP pages not included in menu?

I'm developing a plugin which has basically four pages in menu, each page contains a form that the action value should link to another page (not included in menu). My questions are: how do I link the ...
0
votes
1answer
41 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 ...
0
votes
1answer
25 views

Showpost and last

I need your help. I would like to bring up the last (number) from my template classified ads. Here's the code: <?php $the_query = new WP_Query( array( 'showposts' => 10, ...
1
vote
0answers
68 views

Using color picker in plugin, does input attribute order matter?

I'm trying to use the WP color picker in a plugin admin menu and it doesn't seem to be doing anything at all. I'm following the directions here: ...
0
votes
0answers
79 views

Adding a dropdown list box to the comments page

I'm creating a plugin that will add a dropdown list box as an additional field on the comments page. The data in the dropdown is not being added to the MySQL database. Can someone take a look at my ...
0
votes
1answer
37 views

Echo out element to another page.

I have a small plugin that displays how many submissions are left on current ninja form. And writes it out as so <p id="submissions-left">hurry only 25 submission left. <\p> And tacks ...
0
votes
1answer
51 views

custom url with custom post

I want to change my custom post URL. I want to remove "item" from URL. With the below code and with custom post type url plugin http://wordpress.org/plugins/custom-post-type-permalinks/ my URL is: ...
0
votes
1answer
62 views

Equivalent of admin.php for public pages

I am pretty new to the Wordpress API and can't seem to find what I need. I have been searching for a way to create public pages (accessible to users without admin permission), similar to the method ...
0
votes
1answer
40 views

Get data from wp_posts of mysql in to variables of wordpress-php script

I want to get post status, media information like the type of attachments added to the post etc in to my program. I tried this but doesn't work well $posts = $wpdb->get_results("SELECT ...
-1
votes
2answers
58 views

contact form 7 - cannot run php

I have installed WordPress and the plugin contact form 7 in it. To make it a multi-page contact form I have installed Contact Form 7 Multi-Step Forms as well. Everything works fine until yet. Even ...
0
votes
1answer
40 views

Avoid class name collision when using third party libraries in plugins?

I am currently developing a Wordpress plugin handling very specific behaviours in our new Wordpress website. I started by reading the introduction articles in the Codex, and I also found the Wordpress ...
0
votes
1answer
57 views

Wordpress function to add text

I m using this simple function to add text to my wordpress site post ! add_filter( 'afip_new_post_content', 'myprefix_change_afip_post_content', 10, 2 ); /* Grabs the image source for the newly ...
0
votes
1answer
68 views

WordPress plugin won't create custom tables

I’m making a plugin that uses custom tables. On my local dev site the tables are being created and everything is working, but when i activate the plugin on a live site the tables aren’t being ...
1
vote
1answer
40 views

How do I extend one plugin I'm writing with another I'm writing using classes?

I have a set of plugins that do different things. I'm wanting to write a plugin with a class I can extend in each of my custom plugins to meet a common goal. In my "socket" plugin I have something ...
1
vote
0answers
22 views

how to enable plugin menu on subsite of wordpress MU [closed]

My problem is I already have one MU site and I want to give my user access to enable or disable there network enable plugin. Like the default appearance menu. Please guide me
0
votes
1answer
52 views

Saving an array to get_options

I'm trying to save an array to get_options in wordpress, I'm aware that I don't have to serialize the array due to get_options doing that. At the moment I don't get any success of failed message upon ...
0
votes
0answers
23 views

Saving plugin data returns “You do not have sufficient permissions to access this page.”

I'm developing a quote plugin which will save a quote to the WPDB using a form to input the quote. I've created half this code and got the other piece from another programmer on here. I'm looking to ...
0
votes
0answers
54 views

How to select from a WP table every 10s in a class (OOP)?

I'm trying to select records every ten 10 seconds from columns message and messagetwo from my WordPress table wp_userlogin, but the code is not being executed. I'm calling wp_schedule_event when my ...
1
vote
1answer
103 views

Saving Plugin settings to the database

I'm not a complete novice with php or wordpress but am wanting to approach this problem the most efficient way so believe asking here will help. I've got a plugin that randomly generates a quote - ...
2
votes
1answer
332 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 ...
4
votes
3answers
299 views

Plugin update error message

I'm working on a client website where the framework requires a specific plugin version to work properly. With the follow lines of code in my functions.php file, it stops the plugin from updating ...
0
votes
1answer
67 views

display user input using ajax in wordpress

I want to display user input with ajax . but still is executed function fail in js file. I dont know where the problem might be. I read http://codex.wordpress.org/AJAX_in_Plugins and I saw ...
0
votes
0answers
161 views

Contact Form 7 to web service

I wonder if anyone can help me with something that's driving me crazy. I'm trying to implement a series of forms that will write to a CRM and the data must be passed as XML. I'm not particularly ...
0
votes
1answer
25 views

Retrieve Plugin Settings and insert into XML string

Apologies for any confusion as I'm completely out of my depth here: I've been trying to write a plugin which will send form data as XML to a CRM using SOAP. The basic plugin works fine, but I would ...
0
votes
1answer
127 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
2answers
134 views

Is wp-app.php or wp-apps.php needed for Wordpress?

A few Wordpress blogs I overlook have suddenly generated 3 PHP files in their top folder: wp-app.php, wp-apps.php, and wp-register.php, not of which existed before. Checking their contents against a ...
1
vote
1answer
107 views

Escape special characters in image link

I am importing the images from XML using a plugin, it truncates the image link while importing. Some symbols are causing the images not to show in the posts. This is the image link. What it shows is ...
-2
votes
1answer
75 views

Wordpress: code structure

EDIT: I've posted them separately here wordpress.stackexchange.com/questions/137672/… and here wordpress.stackexchange.com/questions/137673/…. I'll vote to delete this one. I'm working on a Wordpress ...
0
votes
1answer
36 views

Wordpress Background Audio - Continous AutoPlay

I'm kinda of a newbie , but know my way around a bit in Wordpress to code things in place. I would like to know if you happen to know how to create a continous audio play in the background of the ...
0
votes
0answers
66 views

shortcodes not working -they just display as raw shortcode (code)

I'm developing a plugin and need to implement shortcodes, the shortcodes is coming out as it is on a archive/category page - I have used to the shortcode_exists(); to check if the shortcode does exist ...
0
votes
1answer
150 views

add_action into another add_action not working

I have this little php code for wordpress. It doesn't work. I want to make one add_action under another add_action. But the add_action that is under, is not working! function no_reminder() { ...
0
votes
0answers
87 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(){ ...