Tagged Questions

WordPress Plugins allow easy modification, customization, and enhancement to a WordPress blog. Instead of changing the core programming of WordPress, you can add functionality with WordPress Plugins.

learn more… | top users | synonyms (1)

0
votes
1answer
44 views

Plugin can't be activated [closed]

I'm developing a WordPress plugin, but the last changes caused the plugin to stop working. It tells me that I can't activate the plugin because it caused a fatal error. On localhost all is working ...
0
votes
1answer
46 views

how to get the post id in plugin

I have a plugin that I'm working on and I'm having trouble getting the post id so jquery can use it. I'm able to get it using the admin_head hook but I'm not sure how I can return it to jquery. I'm ...
0
votes
1answer
110 views

get_option() will not work without access to wp-config.php

I've created a plugin. In the initialisation file of my plugin I created an options page with some options to be stored by the admin. <form method="post" action="options.php"> <?php ...
0
votes
0answers
21 views

How to modify Genesis core function?

I am trying to modify a Genesis framework core function. I want to remove strip_shortcodes() from the function get_the_content_limit(). Here is my code: if ( wp_get_theme( 'genesis' ) ) { // replace ...
0
votes
0answers
33 views

Sessions in plugin development?

I'm developing a plugin. At present I have two files. dotmailer.php and dotmailer-add.php. I'm creating a newsletter widget. My dotmailer.php plugin adds an admin menu, with options. It allows the ...
0
votes
0answers
13 views

Updated/Tagged/Stable-Tag'ed plugin does not up in wordpress plugin repository

I have a plugin (http://wordpress.org/plugins/scoutnet-kalender) and I update it quite a few times from 0.2.0 (0.2.1, 0.2.2, 0.2.3 ...) to the new major release 1.0.1. I previously did this like ...
0
votes
0answers
18 views

How to leverage hefty memory actions from programmatically creating nav menus

I'm working on a plugin right now and hitting a wall. Long story short, part of the plugin process is to construct a dynamic nav menu. This nav menu can get rather large, and I'm finding that it seems ...
0
votes
1answer
21 views

ouput buffering confusing me!

I've coded a plugin that works with an external ReST API. It is possible to get a set of posts in JSON to render a post list in HTML. Now I want to extend it to provide download links for associated ...
0
votes
0answers
19 views

Plugin, add settings element

I'm new to WordPress and probably similar question already exist, but as far as I didn't find I make a new one. So I'm trying to make my first plugin in wordpress. I got to make plugin settings page ...
1
vote
0answers
26 views

Upgrade Private Plugin without Deleting

I've seen numerous questions asking a way to update a private plugin by checking to self-hosted repository, or update plugin from personal API, but my question is quite different. As we all know, if ...
0
votes
1answer
39 views

Input with spaces in Shortcode attributes overwritten by defaults

question seems to be similar to the one asked here but the answer went down a different path. Pretty much if a user enters a shortcode attribute with a space it will get overwritten by the default ...
0
votes
1answer
279 views

Plugin hook breaks new WP 4.0 media library grid view?

I have a plugin which has code in it which has broken the new WP 4.0 media library grid view. The grid view itself (the rest of the page is fine) won't display if my plugin is active and this option ...
2
votes
1answer
52 views

How do I add a widget programmatically to a newly created site (WPMU) within a plugin?

I'm making a plugin that creates new sites (WPMU), and also has its own widget that needs to be placed onto the new sites it creates. The issue I'm having is that I can't get the plugin to insert ...
1
vote
2answers
210 views

WordPress 4.0 Cookie Authentication to avoid nonce error when publishing a post and page

Cookies are now tied to internal sessions in WordPress 4.0. This means plugins using basic cookie authentication will have trouble because a token is required for publishing a post or page (as well ...
0
votes
1answer
47 views

Calling a class method instantiated by ajax call in wordpress [closed]

I have an ajax call in Wordpress that instantiate a class. I want to be able to call the class methods in other functions. Here is the code to demonstrate. Ajax call: ...
0
votes
2answers
69 views

Creating custom input fields on the admin side

I'm pretty new to wordpress (been using wordpress for a week now) and took over a site from a colleague of mine . He partially created a plugin to input "Specials" onto the site. At the moment, the ...
3
votes
1answer
230 views

Security error WP 4.0 + WP phpBB Bridge [closed]

so today I updated to 4.0 (glad I had backup). Everything was working fine until I tried to publish a post. There I got Are you sure you want to do this. Also had Cheatin' Uh under ...
0
votes
1answer
37 views

Plugin error on activation - breaks page encoding and prints the code of plugin php files

I have WordPress multisite install, everything was working properly. Developed a custom pugin on my local server (same configuration of Nginx, PHP, MySQL, Memcached, the only difference is OS - ...
0
votes
0answers
16 views

Can you create your own widgets and use them for editable areas of client content?

I'm relatively new to WordPress. As a content management system I chose WordPress so that I could design a website for a friend in a way that would be easy for them to use when I had handed it over. ...
0
votes
2answers
28 views

How to make a cronjob type plugin

Hi i am new on wordpress and has been given a task to make such a script that will fetch posts by categories and shoot email to subscribers. The table structure for subscriber is below Subscriber Id ...
0
votes
0answers
46 views

How to customize the WordPress excerpt?

I searched the web and the available plugins, but I couldn't find anything that is easy understandable for a noob like me to do the following: I learned how to create a "Continue Reading" link and ...
0
votes
0answers
14 views

How activate custom plugin in WordPress on virtual box “host only adapter” and no internet connection?

I'm running WordPress in Virtual Box CentOS 6.5 on a laptop without an internet connection. I am able to get the CMS in a web browser by running the virtual box using a "host only adapter". However, ...
0
votes
0answers
33 views

Input gets deleted/overwritten after changing to different Admin Menu

After I have added a plugin menu and have some input to be saved in the database, everything works fine and gets saved, even if I refresh the current page. However, once I go to other menus in ...
0
votes
2answers
57 views

register_activation_hook on multisite

I am working on creating a plugin for a multisite wordpress framework that is enabled by default for all (by me, the super administrator) When it activates it is required to create 2 tables where it ...
0
votes
1answer
19 views

How to cancle update messages from a changed plugin

I did many changes on an plugin which was allowed to be manipulated. Now I want to be sure, that an update will not overwrite all my changes. What can I do to prohibit it from updating (or showing ...
0
votes
0answers
48 views

Simple WP Plugin with plugin settings page

I need to create a plugin with only one select on his settings page and save select value. I have a select with all register menus and I can not to save my select value. What am I doing wrong? What ...
0
votes
1answer
23 views

Need to hide an element depending on date and post category

I've been racking my brains for a few days trying to figure this out. I'm using WP Voting on my site. I need to create a script in single.php that will remove the div that contains the voting widget ...
0
votes
0answers
65 views

How to execute function/method when specific URL is called?

I have url "www.something.com/wp-content/plugins/tool_new/admin/new_tool_email.php?method=new_tool_send" I want to sent up real cron job, and when this url is called to execute method ...
1
vote
1answer
102 views

Proper way to pass credentials in a custom login form to avoid “headers already sent”

I'm working on a custom login page plugin. I'm trying to figure out how to log the user in without creating "headers already sent" errors. I was calling wp_signon directly after the user clicked ...
0
votes
1answer
17 views

Children Shortcodes?

I started creating WordPress plugins a few weeks ago, and I would like to know if it's possible to somehow "embed" shortcodes in some others. Basically what I want to do is create a table or a list, ...
0
votes
0answers
63 views

Can't use get_option function in PHP file located inside plugin folder

I am currently developing a small plugin which queries an API for some XML data. The XML data is then used to display a page. I wanted to do most of the display and formatting related stuff in ...
4
votes
1answer
43 views

Check the Version of an Enqueue'd External Library

I want to use an external font library in my plugin, but I want to do a version check first to determine if I should bother enqueue'ing my version or not. I know I can see if a library is already ...
0
votes
0answers
31 views

How to add submenu to Wordpress plugin in the same Directory of main Plugin?

I have created a plugin and now i want to add a third party plugin inside of the Main Plugin menu, so it can be submenu. How do you make the second plugin appear? Directory Setup: ...
0
votes
0answers
34 views

Hook pages by id on static front-page

I would like to build a one page website upon the Wordpress CMS. I'm looking for a way too hook my pages on a static frontpage by id, since I have several page types. I've tried: $id=6; $post = ...
1
vote
3answers
871 views

How to add multiple images to custom post type?

I would like to create a simple plugin to add multiple images to a custom post type. I have created a plugin to add a single image to a custom post type, but I am unable to figure out how to add ...
0
votes
0answers
12 views

Setting a taxonomy consisting of sites' name

Hi I am running a multisite and I would like to set the taxonomy as sites' name. so the category will have options of Group A, Group B etc. The problem I have now is that I do not know how to get a ...
0
votes
1answer
14 views

Deletion of shared options using uninstall.php

I'm using uninstall.php for my plugin to delete all the traces my plugin did to a site on uninstall (delete). I did it in a good way, but even after the deletion there are some fields in the options ...
0
votes
1answer
27 views

Force Network Activated Plugin to Run After Site Level Plugins

I have a custom plugin I created and network activated it on WordPress Multi-Site install. I plan to use this plugin to override/enhance functionality for plugins available on my installation. The ...
0
votes
0answers
72 views

Force download a file within plugin file

I am trying to make a plugin which will force a certain file to download. I cannot find any examples of other people downloading files using a wordpress plug in. I simplified the code a little bit. I ...
0
votes
0answers
3 views

Editable/removable number of checkboxes stored in plugin

To make things short, I am working on a WordPress plugin used in various projects (being converted from a solo script) that depending on the website, they may or may not have multiple checkboxes with ...
1
vote
0answers
160 views

Should I use spl_autoload_register() in my plugin?

When I use spl_autoload_register in my plugin, I get: Fatal error: Uncaught exception 'LogicException' with message 'Class wp_atom_server could not be loaded' ...
0
votes
0answers
115 views

I want to add facility to add country, State, City in my custom plugin

I am working on a plugin for trip adviser, In that i am to add service for user that he can add country, state, city in which his company provides the trips. What should i prefer for that, Please ...
0
votes
0answers
27 views

Media Uploader is not working in default rich text editor in my custom plugin

I am working on my custom plugin that will store records in its own database tables. I am willing to add contents via WordPress default rich text editor. I found some code on WordPress stack exchange ...
0
votes
0answers
20 views

Database solutions for a commenting plugin?

(I'm new to this and am aware that my questions are vague and kind of suck, please bear with me.) My plugin, a commenting platform, is in the directory. Currently, it doesn't have it's own database. ...
0
votes
0answers
31 views

Widget options are not updated

I'm creating a plugin which creates a widget with some options. I've extended the WP_Widget class: class Dynamic_Player_Widget extends WP_Widget { function Dynamic_Player_Widget() { ...
0
votes
0answers
19 views

Can You Require the Use of JavaScript in a WordPress Plugin?

I commonly use Mozilla Firefox for testing changes I make for a plugin that I'm developing. I also have the NoScript addon installed because it is also my main browser. I noticed that the ...
1
vote
1answer
131 views

Scheduled events disappear from events queue

I'm having an issue where events that I have scheduled work for a while then just stop. After looking at the event queue I see that the scheduled events are no longer in the queue. If I deactivate ...
0
votes
0answers
11 views

Plugin update without overwriting the functionality [duplicate]

I have installed some plugins with my WordPress site, some time i modify a lot in the (.css or .php) files of the plugin to get the results i want after that i can use them with more than one site, so ...
0
votes
0answers
48 views

Custom frontend post not working?

Hi I am creating a custom post front end submission. This is my code to submit the custom post details. Here the validation is not working as well as it will not submit the post. When i submit the ...
0
votes
0answers
45 views

How to load another page file of my custom plugin file

I'm creating my own plugin for medical purpose. in the site front end using shortcode i created a login form. so after logged in the doctor can see list of patients with and edit link to each row. i ...