Plugins are tools to extend the functionality of WordPress. This tag should not be used to mark requests for plugin recommendations, which are off-topic per the FAQ.

learn more… | top users | synonyms (2)

0
votes
0answers
10 views

How to format the Widget Display function contents?

I'm writing my first plugin, and basically I'm wondering how to write the code which goes inside of the widget display function: function widget($args, $instance) {} I'm trying to run a post query, ...
0
votes
0answers
18 views

My Ajax Query is returning the contents of the page itself

I am attempting to execute the submission of a form in AJAX. function rapid_form_callback() { global $wpdb; $table_name = $wpdb->prefix . "my_client_here"; require_once( ...
0
votes
0answers
24 views

Put an audio plugin on the frontpage [on hold]

This is the page I am designing: http://leona-anderson.com/ I do not have a site on the frontpage, I show the newest blog posts. Now what I want to do is, put some Audio Player Plugin on the front ...
0
votes
0answers
32 views

Link ( click on images open its details ) not working in any Mobiles [closed]

On home page website link there is sliding celebrity Images : on click of any celebrity it takes to it resp. pages which is working on Desktop / laptop browser , i mean click - link working , but ...
-1
votes
1answer
14 views

Remove base from the custom post type URL [duplicate]

I wanted to add blog before the post slug in the URL. The URL for the post type page was: http://example.com/blog/post-one So basically to add blog before the posts url in Settings >> permalink ...
-1
votes
1answer
21 views

Admin Message Broadcast for all wp users [closed]

Wordpress admin sends a message and it will be shown in frontend to registered wp users. Read and unread facility is also required Any Plugin suggested for this task?
0
votes
1answer
118 views

AJAX fileupload - TypeError: not a function ajaxSubmit()

I have a plugin that works as a standard POST but not as an AJAX POST request. I am getting a not a function error in Firebug with this function: TypeError: jQuery(...).ajaxSubmit is not a function ...
0
votes
1answer
31 views

Using 'mysqli_connect' 'crashes' Wordpress client-side

I am using Wordpress as a CMS for a bus-route planner, I have inputted the first few bus stops for the first bus route and am now developing a PHP script for the planner. I am using this code, with a ...
0
votes
1answer
33 views

How to add img into a plugin?

I started constructing my first Wordpress plugin but got an issue... I've a folder-file structure like that: PluginFolder/ TemplateFolder/ img/ my files php How can I use the /img/ folder in ...
0
votes
0answers
23 views

stuck in $args value insertion how to pass more than one value

I am in a middle of building a plugin and some how I manage to limit profiles to show only with the users with role regular_user by putting this line in my code $args['role']='regular_user'; ...
-2
votes
0answers
31 views

Wordpress Plugin Inserts Demo Data into Custom Tables each time I activate it

i am developing a plugin that creates some custom tables in database. The plugin also installs some default data into database. The issue I am having is each time I activate the plugins, it inserts ...
0
votes
3answers
24 views

wp_ajax action responds with 0

I'm writing a plugin. There is a button, that triggers an ajax-request to an action I added in my plugin page: Head of my plugin PHP file: add_action('wp_ajax_update_nav_items', 'update_nav_items' ...
2
votes
2answers
240 views

Custom pages with plugin

I'm developing some plugin where I would like to enable custom pages. In my case some custom page would contain a form like contact form (not literally). When user will fill out this form and send it, ...
0
votes
0answers
28 views

Google map disappeared after updating to WP version 4

Few days back, I updated my wordpress website to the latest version Benny. But after that update, everything went haywire. One premium plugin went missing. Google map disappeared into thin air. ...
0
votes
2answers
46 views

Hide a Menu Item on Login

I am using the following code to hide a menu item when a customer is not logged and show it when a customer is logged in. .hide-item-not-login{ display: none !important; } .logged-in ...
0
votes
2answers
29 views

Stop Wordpress processing Javascript as text

I'm currently developing a bus route planner, using Wordpress as my CMS. I've added some JQuery code to add support for ajax (so visitors can use the route planner and load the route without having to ...
0
votes
0answers
14 views

Allow to user select template only once

i want to give the user option to select template one time in multisites. way that can help me is to allow the user select the template once the user first login to the system. if you know how can i ...
0
votes
0answers
8 views

Best practices for using plugin source in multiple projects with tortoise

Today I uploaded my first two plugins to WordPress. I use these plugins in most of the websites I develop. I am using NetBeans on my desktop. I am trying to figure out how to best use Tortoise SVN to ...
1
vote
0answers
21 views

Trouble adding tiny mce to textarea in custom plugin

I'm using the Sunrise open-source OOP framework to develop my plugin. I am building out a new settings page and I'm having trouble adding in a WYSIWYG/tiny MCE textarea to the settings page. I've ...
2
votes
5answers
139 views

Upgrading Wordpress 4.0 asks for FTP password

I was able to upgrade Wordpress 4.0 on my local machine, and I also just updated some plugins on the production machine, but when I try to update Wordpress 4.0 on the production machine, it is asking ...
1
vote
1answer
60 views

Overwrite or Replace code in WP_Footer

I have a some code being dynamically added into my Footer via add_action('wp_footer' ...). Unfortunately I'm not sure how to remove it using conventional methods, I've looked at the following question ...
1
vote
1answer
24 views

Procedural Question on Plugin Installation

I am running WP multisite with about 80 sites. I can see from my server's directory structure the presence of only one directory for ../wp-content/plugins/* Each of the plugins I have installed is ...
1
vote
0answers
8 views

automatic plugin install availability: server configuration

This link shows how it may be possible that WordPress may not be able to download and install a plugin via its web interface (known as automatic plugin install). However it may be still be able to ...
0
votes
1answer
22 views

How to save information related to post in database?

I created a post-to-email plugin and I need to save something in the database when the post is sent so I don't allow users to send it twice. How do I save this in the database? And how can I retrieve ...
0
votes
1answer
38 views

Show related posts based of current ACF field name in a single page post (a loop within loop)

I have a single page where I display my current post. Within the post loop, I wanna display another loop inside that shows 3 other related posts by title that share the same text as the current post ...
1
vote
0answers
11 views

using plugin to add menu item to external page [closed]

I have a wordpress plugin that is working well so far. The last step for me is to have it create a menu item on the main navigation menu to an external page when you activate the plugin. Not sure how ...
0
votes
0answers
16 views

WP Meta Box Not Saving

I've been trying to get this custom meta box to save but it is not working. I've browsed around but still haven't found a solution that works. function add_link_box() { add_meta_box( ...
0
votes
0answers
21 views

Filter html of WordPress editor in visual mode only

1 down vote favorite I have done a lot of Googling , but have not been able to figure this out yet. I have used a function in a plugin I am creating that swaps out the file url of any image inserted ...
0
votes
0answers
25 views

Wordpress Apply filter in plugin causes 500 internal error

I use the plugin https://wordpress.org/plugins/show-post-in-lightbox/ to display all feautered image of every post on a page. whenver one of these images get clicked on a lightbox will appear showing ...
2
votes
0answers
29 views

Display (and manage) webcam images?

I have a webcam that write every minutes or so, an image to an ftp folder on the server where WP is installed. My question is how to get the last image displayed on page, with refresh every 60 second, ...
0
votes
0answers
25 views

Make a select field directly beside a text input field with the Settings API

I'm building a plugin that needs a very simple options page. I'm asking the user to enter the default width and the default height that they want the plugin to use for their embed. I also want to give ...
0
votes
1answer
23 views

Replace code in plugin template

In plugin, I have following code in function: $return_string .= '<li class="wpc-category ' . $class . '"><a href="'. get_option('catalogue_page_url') .'">All ...
0
votes
1answer
27 views

Array to string conversion error when trying to POST multidimensional array

I am getting the following error notice: Array to string conversion in /path/to/wp-includes/class-wp.php on line 281 I have a form that is for frontend submissions to create custom post type posts. ...
1
vote
0answers
44 views

Render custom php template into string

I have a native php template, say, <div> <?= $data ?> </div> Deeply inside the wordpress plugin page I need to render it into string. I feel I miss something well-known here, but ...
1
vote
1answer
52 views

Test files for plugin development

The end of the first chapter of Professional WordPress Plugin Development by Wrox Press released February 2011 states: To test a plugin during development make a test.php file and place it in ...
0
votes
1answer
32 views

Show image or notification on specific blog in multisite

I have a multisite. I am trying to create a simple plugin that will allow me to select website(blog) from the list of all website in my multisite. How to show some image or notification(text or html ...
1
vote
2answers
51 views

Adding Font Awesome to WP Plugin

I'm trying to use font awesome icons for my plugin. I've read this page in the codex and this question. Here's what I've tried so far: I've added this on wp-plug-in.php (or should it be somewhere ...
1
vote
3answers
28 views

Best way to modify a plugin with no hooks and no pluggable functions?

I have to make some changes to some functions in a plugin that don't have hooks and aren't pluggable. My idea was to wrap the functions I modify in a if ( ! function_exists()) and move my ...
1
vote
1answer
46 views

Js file is not adding using this code in functions.php

Sorry i am noob in WordPress. I am using following code in functions.php to add the .js file in wordpress. function your_function_name() { wp_localize_script( 'function', 'my_ajax_script', array( ...
0
votes
2answers
34 views

How to redirect to edit.php page after saving the post,product and showing the message “post saved ”

I am trying to redirect all post pages, once a post or products are saved. It is redirecting to that page but it is not showing any message. Let me know how to register message for particular pages at ...
0
votes
1answer
15 views

Child Theme Changes Are Not Reflecting In Parent Theme

So I've recently moved my Wordpress.com blog to Wordpress.org. I was using a Child theme via a Plugin and changed a bunch of the CSS, but when looking at the parent theme, nothing ever changed. No ...
0
votes
1answer
36 views

How to get DEFER or ASYNC attribute to appear when I add a stylesheet with wp_enqueue_style from a plugin? [duplicate]

Almost all of my CSS and JS resources can be postponed with an ASYNC or DEFER tag added to the resource. This may improve performance of my page load times considerably. However, I don't know how to ...
0
votes
1answer
40 views

Featured Image in RSS Feed

I'm using the following code to add a featured image to my rss feed in wordpress. add_action( 'rss2_item', 'add_post_featured_image_as_rss_item_enclosure' ); function ...
0
votes
2answers
117 views

Building a plugin into a theme

Firstly, I know this is 'bad' practice for several different reasons, but for reasons that I won't waste your time with it's something I need to do. Using a fairly simple plugin and I've tried ...
0
votes
1answer
32 views

Help with a function in a widget

I'm new to custom widgets and functions, and need a bit of help understanding how to achieve something. On my bookstore site I need to display links to books on external site using their ISBN ...
0
votes
0answers
18 views

unable to access image attributes in wp_postmeta when looping through posts

I have an issue with accessing attributes of a library image, particularly the "Alternate Text" attribute. I use the ACF (Advanced Custom Fields) plugin to pull back the slideshow image which is ...
-1
votes
1answer
64 views

getting image alt text via ACF plugin in WordPress [closed]

I am using the ACF plugin in my WP 3.3.1 application and I use the the_field method in many places across the site. One place in particular I use it is in a slideshow/carousel as below: <img ...
0
votes
1answer
13 views

Creating a page that does not show up in the frontend navigation bar

My plugin needs to add a few screens to the frontend of the site, eg. a history overview (http://www.site.com/history?event=X). At first, I implemented this by programmatically adding a page with a ...
0
votes
0answers
25 views

How to test a WordPress plugin on a single post?

I would like to test a plugin on a single post, where the ID = 12546. I tried is_single('12546') in plugin.php and $post->ID with global $post;. Any suggestions to get this working.
0
votes
0answers
41 views

mysql Join wp_users,wp_usermeta and a custom table

I am doing a search functionality based on three fields: servicename, state, zipcode. I have to filter the users. The servicename is in a custom table named wp_doc_services, while the other two fields ...