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
15 views

Cant create table if including the file in main script

I want to create a table by including the script that creates it in the main plugin file. I have this: register_activation_hook( __FILE__, 'vkrwps_agt' ); function vkrwps_agt() { global $wpdb; ...
0
votes
1answer
44 views

Use of apply_filter in plugin/widget class

I'm having difficulties to find out what I'm doing wrong in my use of apply_filter() in a widget class. Here's some samples of my code: class Byad_CountDown_Widget extends WP_Widget { function ...
0
votes
0answers
43 views

WordPress Plugin: Global Update

Hi I want to be able to make a plugin that will check for updates of other plugins that i have made from a single place. In my main plugin file i have include_once( 'class-login-slider-updater.php' ...
-1
votes
1answer
17 views

Plugin problem. Question is not appearing.

I have installed a plugin DW Q & A and I have posted some questions on it too. But when I click on the questions it is not available. why? The questions on the page: after clicking on a ...
0
votes
1answer
56 views

How to add favicon to my site - in both front end and admin panel

How can I add favicon to my WordPress site in both front end, and admin panel. I've tried many ways, but failed. I know, to show favicon the code is: <link rel="shortcut icon" ...
0
votes
0answers
6 views

Wordpress pie register custom registration [duplicate]

I am using pie register to create a custom registration page for my users, I am having a problem which is I want to add an option where when my user selects from a radio button either they have kids ...
0
votes
2answers
53 views

Plugin “Meta Box”: Implementing meta boxes in custom post type

I am a WP beginner and see the potential of the "Meta Box" plugin (http://wordpress.org/plugins/meta-box/). I have already activated the plugin. So far I managed to upload the demo.php and to display ...
0
votes
2answers
49 views

How can I change plugin to give access to editor user role?

I want to give my editors access to a settings page to a plugin I've installed on their website. As of now, it's only visible to Administrators. The plugin I'm using is uTubeVideo Gallery, and there ...
0
votes
1answer
39 views

Ajax, jQuery and Wordpress

I'm having trouble getting AJAX and jQuery to work with WP, and wondering if someone can point me in the right direction. I have a form, and I want to pass the data from the form to a PHP function, ...
0
votes
1answer
20 views

Remember the meta value with radio buttons

I've created a simple meta box consisting of two radio buttons: yes or no. When they click on the appropriate box, it saves the meta value to the database. However, the post page does not remember it ...
0
votes
0answers
10 views

Search template content

I have used templates for each page created from wp backend for my site. Like, e.g, Template named 'about' for 'About Us' page. On the template I retrieve posts of specific category using WP Query. I ...
0
votes
0answers
10 views

Uploading external web pages with limited rights

Context: We have a Wordpress website for our software. This software is not available to everyone. Moreover its users, according to their rights have access to different parts of the source code. In ...
0
votes
0answers
10 views

Limit the number of plugins that a blogowner on a multisite can see (as can be done with the themes)

In a Wordpress multisite setup it is possible to enable some or even all themes for a specific site. Enabling all themes for a site might be overwhelming to a blogowner, especially when you have ...
0
votes
1answer
75 views

Meta slider plugin only works after first refresh - Object has no method 'flex slider'

I have a wordpress theme I am using called 'Nordic', however I did not like their slider plugin, so I used my own... '[Metaslider][1]' The problem is when you first load the page, the slider does not ...
0
votes
1answer
21 views

Links on FAQ page aren't working

I apologize if this is a naive question. I'm a Ruby on Rails developer and I'm not yet very comfortable with WordPress. I built a WP site featuring an FAQ page using Q and A Focus Plus FAQ plugin. It ...
1
vote
1answer
51 views

Common functionality between my own plugins

I read that when creating new post types, creating a settings page, and creating a new taxonomy, you should create a plugin. So I have done that. But I have functionality, which could be generalized, ...
0
votes
0answers
24 views

get_the_author_meta not working when sending emails

I can't seem to get "get_the_author_meta" working when sending welcome emails to users. I want to customize the content based on custom user meta. I can pull it in just fine on the front end, but I ...
-2
votes
1answer
68 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
28 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
89 views

WordPress JS- Visual Composer

I am trying to make a sense in which I can put the whole functionality of JavaScript Visual Composer as it is to the front-end of the WordPress site. As I want that user should not use the wp-admin ...
0
votes
0answers
36 views

Local path included in script url

The hosting service of a website I created crashed, now we're trying to get it up and running again. They restored the website/database from a backup but we're encountering issues. A couple of ...
0
votes
1answer
55 views

How to safely sanitize a textarea which takes full HTML input

I'm developing a plugin which enables the user to send HTML emails from within the WordPress admin. How should I sanitize the textarea input? It has to be able to contain the whole range of HTML tags ...
0
votes
1answer
33 views

Show Sitename on Yoast SEO Title tag

I am using Yoast SEO plugin on a site. Right now if a Post's Title is left empty in the metabox for a post, then the Title tag will output in this format... %%title%% %%page%% %%sep%% %%sitename%% ...
0
votes
0answers
31 views

Sharing two subdomains with a single WordPress without MultiSite

I want to have a single Wordpress installation for use of two domains e.g. http://blog.example.com for blog http://www.example.com for company pages I don't want to use multi-site setup, because ...
0
votes
2answers
53 views

Wordpress and a secondary database?

I have to achieve something on which I don't know how to approach it. Base of the issue: There's a bunch of data in another DB that I have to import into WP which so far wasn't possible due to them ...
0
votes
1answer
23 views

remove all submenus from plugin

Is there a way to un register all submenus at once instead of using the code below? remove_submenu_page('myplugin', 'sub-page-1'); remove_submenu_page('myplugin', 'sub-page-2'); ...
0
votes
0answers
23 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
28 views

change output location of plugin function using a custom hook

I'm running the YouTube Video Fetcher plugin and it fetches youtube videos and displays it on your website. However, instead of displaying the video after the post, I want to hook the code into a ...
0
votes
1answer
42 views

Auto insert More tags in all posts

I have a theme for my mobile site that requires the <!--more--> tag in my posts for it to display an excerpt of my post's content. I've got over 2000 posts already, and its going to take ...
-2
votes
1answer
27 views

Why haven't I see plugins using get_file_data to handle retrieving plugin version?

In terms of best practices, I'm curious as to why I haven't seen anyone using get_file_data or get_plugin_data to handle getting a plugin version (for versioning CSS/JS files). Many quality plugins do ...
0
votes
0answers
24 views

Add pubDate to Nextgen gallery RSS feed

I want to add the <pubDate>tag to the NextGen gallery RSS feed, but I can't figure out how, the date I want to put in the tag is the gallery creation date, I have used date(DATE_RSS) but that ...
0
votes
2answers
57 views

Remove ALL css for a specific plugin page

I'm now writing a plugin that hook with a [TAG] on a page. From now every thing work well except for the custom css. I've writing my plugin on a developement station with basic theme (20-14 I think). ...
0
votes
1answer
17 views

Can my hooked uninstall class function access a global var declared in main plugin file?

My current setup is as follows... In the main plugin file, these two hooks are set (not inside any class): register_activation_hook(__FILE__, array('DG_Setup', 'activation')); ...
0
votes
1answer
37 views

Why function hooked using object are executing at all time?

I tried to use class and object in plugin. I made a simple function with a shortcode but it is executing the function without pasting the shortcode to any page/post. class example{ function ...
0
votes
1answer
76 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
23 views

Creating button next to “add media” that allows you to choose a single post

I'm looking to create a button next to "add media" ( much like gravity forms "add form) that allows you to choose a custom post and then inserts that post id into a shortcode. I've bene looking at ...
0
votes
0answers
41 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
50 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' ...
2
votes
2answers
75 views

Should I host support forum on wordpress.org or my own website?

I have a Wordpress plugin WP Pipes hosted at http://wordpress.org/plugins/wp-pipes/. I see that it is convenience for users to ask question right in the support page at ...
0
votes
1answer
49 views

How to access the WordPress DB from a plugin file

I'm building a basic video management plugin, with an embed feature that will have URLs like: mysite.com/wp-content/plugins/embed-video.php?video=[POST ID] I plan on using the [POST ID] url parameter ...
1
vote
0answers
36 views

Wordpress plugin creating database in localhost but not on real host

So I am busy creating a plugin that creates a custom table to read in some data. The plugin works 100% on localhost but does not create the table in the db on the real host. I have debug enables and ...
0
votes
1answer
25 views

How can I create a custom shortcode that will return a custom post type by ID?

Please excuse my ignorance, this seems simple but I can't figure it out and I've been rushing to hack things together. I can't find anything online to help me out. What I have: A custom post type ...
6
votes
2answers
120 views

What is right way to go about adding functionality to a published WordPress plugin?

So I looked all over to try and find some kind of rules, or at least some common-courtesy guidelines, concerning this issue and couldn't find anything. Essentially I'm wondering what I should do when ...
0
votes
0answers
15 views

Create a Module inside the new pages admin site

I got the following problem: I have a plugin and with this plugin I want to create a module which will be visible if I create a new Pages in the admin section... like in the Picture the "Title Bar ...
1
vote
2answers
41 views

How do i save plugin-specific info?

Im currently building a plugin that imports some data from an XML feed. This is all working great. Now i want to add some info, letting the user know when the last import happened. "Last import: ...
0
votes
2answers
25 views

Test if php document executed by Wordpress or directly

Active plugin PHP files are interpreted automatically when you view a page, post, admin page, etc. I could also run a plugin PHP directly if I knew the fully qualified URL, however it will most ...
0
votes
1answer
20 views

How Can I Safely Remove WP-Super Cache without messing my site up?

So apparently some people cannot view my site because they said it only loads the sidebar. This only happens to some people and it only started happening after I installed the w3 super cache. I've ...
1
vote
1answer
31 views

Internationalization and the plugin description

SO I am trying to do some i18n on a plugin I am working on and having some troubles. I wanted to see if anyone else has encountered these or possibly has a solution. Basically, I have received the ...
0
votes
0answers
41 views

How to show post attachment image

i am going to create a slidershow by post attachment in single.php. i use this code but the result is null. <?php if ( have_posts() ) while ( have_posts() ): the_post(); ...
0
votes
1answer
13 views

using add_action without having custom plugin or theme

I need to send an email after an author publishes or updates a post. But I don't like developing custom plugin or theme. Is there any plugin that runs a php script after publish. Or where can I insert ...