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
0
votes
1answer
148 views
How to modify product page for Jigoshop
Hi I am editing Jigoshop loop-shop.php to create a customize look list and the code is below .... Please do let me know where I can get below things ...
Add to Cart - Link Only
Price Text - List ...
0
votes
0answers
11 views
Front-End Interfaces Without Shortcodes
So, I consider myself a "advanced novice" at WordPress development but I still do not have the concept of pages and templates fully understood. I'm having an issue with a feature I'm attempting to ...
0
votes
1answer
153 views
wp_insert_user keeps echoing values
This is bugging the heck out of me. Essentially I've narrowed the issue down to one line of code:
$user_id = wp_insert_user ($userdata);
From what I can tell nothing should be echoed here, but I ...
1
vote
2answers
35 views
Add Additional File Info (jpeg compression & file size) settings to Edit Images Screen
On the WordPress Edit Image Screen, I'd like to add a label to show the current compression level and byte file size of the image.
Any ideas how to tap into this screen and echo this data?
The ...
1
vote
2answers
296 views
Install widget on plugin activation
Anyone know any resources to help me install my widget when my plugin is activated?
2
votes
1answer
175 views
How could I execute my plugin just in frontend (not in backend)
I don't need my plugin running through wp-admin, including wp-login. How could I prevent it? is_admin works fine but i don't know how to ignore everything related to wp-admin (like wp-login.php).
...
6
votes
1answer
75 views
Add screen options to custom admin pages
I want to add screen options to my plugin settings page, like the ones that are available in the Dashboard.
I tried using the add_option method of the WP_Screen object and found that it supports ...
0
votes
1answer
37 views
How to make my plugin theme-independent?
I need a little help and/or consulting for my next steps. (I'm a beginner!)
I've been working on my plugin, using a Custom Post Type "Project", some help from the plugin "Advanced Custom Fields" - ...
1
vote
1answer
114 views
How to remove plugin-specific custom taxonomy terms when plugin is uninstalled?
I'm trying to write a class that would allow for easy removal of all plugin-related data when the plugin is uninstalled. Specifically, I want it to remove plugin options, custom post type entries, and ...
-1
votes
1answer
22 views
Can I use an array to create multiple tables?
I followed the codex page on how to make tables in the wordpress database with a plugin and was able to understand and get it to work However, the plugin I'm developing has the need for many tables ...
0
votes
0answers
16 views
Wordpress plugin update required not showing in dashboard
I've updated my first plugin (making a branch/tag to tags/1.1.0 from the trunk)
All version numbers are correct in the files and everything shows up on the plugin page as it should. However, the ...
-1
votes
1answer
32 views
Creating Blood Donor Website using WordPress [closed]
I am going to build a website to gather all who are willing to donate blood without any hesitation. Here people can register, manage their profile, post blood request, post articles, receive blood ...
0
votes
2answers
20 views
WP Cron doesn't save <iframe> or <object> in post body
I am using wp_cron to auto grab posts from a remote website and save them in my wp db.
NOTICE! I am executing my code from my plugin, not from my template functions.php or somewhere else. I have my ...
0
votes
1answer
161 views
Display Thumbnail instead of text title - Wp Plugin 'Download Monitor'
i am using this nice plugin (wordpress download monitor), nice feature.
i have a one problem, there is category download section, actually i want to display thumbnail instead of "post title" please ...
0
votes
1answer
12 views
Redirect url in plugin to somewhere else?
I am using WP-SNAP Extended! v1.0.0 and I want to use this alphabetical menu as a sub-menu beneath my header. I managed to get the alphabetical menu in place, but now, if I click on a letter, it will ...
3
votes
1answer
111 views
Using preg_replace to clean widget output HTML
I am working on a wordpress site that uses a plugin / sidebar widget. The issue I am experiencing is that the widget generates HTML that is not valid, an example of this is below...
<p>
...
4
votes
1answer
2k views
Making my plugin multi-site compatible
I want my plugin to be installed on each blog and create database tables per blog. I have this code:
register_activation_hook( __FILE__, 'install1' );
function install1() {
global $wpdb;
if ...
3
votes
1answer
40 views
Which action for triggering cron “wp”or “init”?
Which one do you recommend using within a plugin and why?
add_action( 'wp', 'trigger_me' );
function trigger_me() {
if ( !wp_next_scheduled( 'my_plugin_cron' ) ) {
...
0
votes
2answers
24 views
Metadata for a taxonomy - is there any WordPress way of doing this?
If I have a CPT "movies" I know I can have various taxonomies eg "Director", but how can I store further information such as "director's nationality" for any one particular director ... or is this ...
0
votes
1answer
18 views
Multiple textdomains
I have a bunch of plugins. Obviously, they all have their own unique textdomains for internationalization (i18n).
I also have a bunch of files that I include in all my plugins - I throw them all in a ...
0
votes
1answer
189 views
How to change post status in hook?
I have similar problem as described in How to trap "Publish" button to check for meta box validation?
Answer there is to hook into save_post and change post type. How can I do it?
I try to ...
-2
votes
3answers
157 views
Plugin: Custom menu item problem
I'm using the following snippet to add a menu item:
<?php
add_menu_page(
'Foo Server',
'Foo Server',
'manage_options',
'foo-server',
array('Class', 'method')
);
?>
Fine, ...
6
votes
2answers
1k views
Update widget form after drag-and-drop (WP save bug)
I've posted a bug-report about this a few months ago (on WordPress trac (Widget Instance Form Update Bug)) and I thought I'd try writing about it here too. Maybe someone has a better solution to this ...
-1
votes
0answers
18 views
I want to have the following functionality in Wordpress [closed]
I want to implement the following functionality:
A visitor fills a form.
The form will be saved in the database.
The site will show what the user introduced in a new page.
The user will have the ...
0
votes
1answer
56 views
Display custom fields in frontside user profile
I installed the CIMY User Extra Fields plugin to add new custom fields in theuser profile.
I added 1 custom field for gender to the user profile but it displays only in the admin panel user profile. ...
-1
votes
0answers
25 views
get_terms wordpress
I created one PHP class that has a method which is using get_terms() function of word press. Then I am creating the object of that class in other PHP file and calling that method, the method is called ...
0
votes
1answer
15 views
Checking for existing title in custom db query not working
I want to check if the title exists before the wp_insert_post() is triggered.
However, the condition seems not to work as expected:
if( $wpdb->get_row("SELECT * FROM wp_posts WHERE post_title = ...
1
vote
1answer
58 views
Formatting of curly brackets array from WP database to get more readable output
E.g. when I want to edit something in my WP database, I get a headache, literally. Because I see something like this:
...
0
votes
1answer
15 views
How to access function from outside of a class within this class in WP plugin?
I am developing a WP plugin called e.g. DD_Awesome_Plugin and this is my code so far (simplified version without additional code logic within class functions):
class DD_Awesome_PLugin {
public ...
0
votes
1answer
232 views
Settings options not showing up on Sub Menu page in WordPress plugin
So I have a plugin with two user-customisable settings. (It's not complete but I'm getting the framework in place.) When the two settings are on the "general" settings page they work just fine...
...
0
votes
1answer
154 views
How to set/change another post author by custom fields or something else?
I need help! (sorry for my poor English, I'm from Russia)
How I can to set/change another post author by custom fields or something else?
For example:
I want to public post, but define another post ...
1
vote
2answers
121 views
How to get the permalink of a page when loading my plugin
I'm implementing a web widget and for this reason i'd like my script to respond to the request as soon as possible, to avoid loading unneccessary thing.
I've found out that calling get_permalink( ...
4
votes
1answer
161 views
Settings API with arrays example
I'm using the Wrox WordPress plugin development book as a primary reference for getting started with a new plugin and I understand all settings can be saved as 1 array but the book does't give an ...
1
vote
1answer
24 views
Allow users of my plugin to define their own shortcode rather than use mine?
I'm creating my first plugin. So far everything is great, but my shortcode is something like this [BIMS] and that acronym might not be easy to remember, or appeal to everyone. I'd like to include an ...
0
votes
1answer
21 views
Building a simple “settings” plugin to change textstrings on the home page
I am trying to build a little settings area to change the strings of some text (image urls & links) on the homepage via the dashboard.
I have found a useful tutorial which provides the plugin ...
0
votes
2answers
58 views
Borrowing of Previously Translated Strings by Child Plugin
Gist: When writing an extension of a plugin, can the extension "borrow" the translations of the req'd parent plugin by using it's textdomain?
Scenario:
Let's say that there's a parent plugin, whose ...
0
votes
2answers
32 views
How to handle shortcodes through plugin
I learned that I can only put in the code for handling my shortcode through the theme's functions.php
But I was thinking of making it a plugin rather than a theme. How can I achieve that?
0
votes
3answers
22 views
How to trigger $_GET request within admin plugin page?
I have this form in my plugin function:
<form method="get" action="" enctype="multipart/form-data">
<p class="submit">
<input type="hidden" name="do_it_hidden" value="run">
...
3
votes
2answers
949 views
How-to implement admin Ajax inside an admin WP_List_Table?
I am new to WordPress if someone will help me I will be very appreciate.
There is parameter ajax "true" but in docs. wasn't said how to implement Ajax using WP_List_Table Class?
parent::__construct( ...
1
vote
3answers
407 views
Getting Details Of Uploaded Image
I'm using Wordpress' upload system (as explained here) on my plugin's admin page.
I can upload an image and get this image's URL. But i need attachment ID, image caption etc. How can i reach them?
I ...
0
votes
2answers
2k views
Set first image (external) as featured image / thumbnail
I've read through a lot of code snippets now and it seems like wether I'm to stupid or there is no solution for this.
I have a setup where some information for a product is loaded via amazon API if I ...
-1
votes
0answers
14 views
When adding action or shortcode from inside a class, do I reference it with &$this or $this? [closed]
I have a class, a WP plugin that adds actions and a shortcode. However in tutorials I saw the type of referencing the class with &$this and in some other cases $this.
add_action('init', ...
0
votes
0answers
15 views
Maintain custom post types and taxonomies in all themes [duplicate]
When I change the theme in dashboard, activated plugins that use custom post types, stay in the menu. But my own custom post types that I created myself disappear. Logically, It is because I create ...
1
vote
4answers
164 views
WP_Query returns no results
I'm using wp_query to create a custom query that retrieves search results but it is returning 0 results. Here is the code:
$query = 's=the&posts_per_page=5&paged=1';
$custom_query = new ...
0
votes
1answer
60 views
Create and style menu
I have been assigned with the task to create a menu that can be added or removed from wordpress admin. Right now the menu is hard coded into the templates. But I want to use default menu function ...
1
vote
2answers
60 views
Failed to invoke other hook from the init hook
Related to this question (Use wp init hook to call other hooks?) but not the same.
Sometimes, I found that the hook will failed to run when I place inside the init hook, e.g.
Not Work:
...
0
votes
1answer
106 views
Creating a Link Text like Submit Button in Admin Page
I'm making an admin page for my plugin and I'd like to make a text link designed like the form button of admin pages.
I tried this but didn't work well.
<a href="" cless="button-primary" ...
1
vote
2answers
143 views
remove custom taxonomy metabox form custom post type
I have created a custom post type 'hotel' and custom 'taxonomy' so when administrator creates a new hotel and saves it it related custom taxonomy automatically get created but I don't want to show ...
0
votes
3answers
232 views
When do I need to use esc_attr when using WordPress internal functions
When I am putting a WordPress value inside the attribute tag, for example, the following method does not need esc_attr
e.g.
// JS code
alert('<?php echo get_bloginfo('name');?>');
the ...
0
votes
1answer
374 views
Woocommerce custom emails without header and footer
I'm working on Wordpress / WooCommerce extension plugin to enable Password Reset on the main site (not wp-admin). I want to use standard WooCommerce mailer and email template to send Password Reset ...



