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
1answer
39 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
41 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
66 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
48 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 ...
0
votes
1answer
29 views

Is wp_deregister_script the best way to deal with unneeded plugins in a page?

I use some "heavy duty" plugging, like syntaxhighlighter, GD star rating etc. i create a de-register.php file which i use to deregister scripts and styles whenever they are not used. Example: ...
0
votes
1answer
43 views

Plugin and theme script load order

I'm building a plugin that adds scripts to the page using wp_register_script and wp_enqueue_script. However, when the page loads, it's loading the plugin scripts before the theme's scripts. This is ...
0
votes
0answers
31 views

Automatic updates of plugins and themes outside of wordpress.org

I'm finding it surprisingly difficult to find any info on standardized ways of updating a "private" plugin that does not exist in the wordpress.org repositories. I've seen -- and bought -- plenty of ...
0
votes
1answer
34 views

How to add a filter conditionally based on page related Conditional Tags

I am developing a WordPress plugin and can't conditionally add filters based on the conditional tags. This is my code: add_Action('init', 'determine_location'); function determine_location() { $d = ...
0
votes
0answers
28 views

Changes required to make new plugin from existing

I have a gallery plugin script I found here: http://wp.rosselliot.co.nz/user-images/ This allows users of my site to upload their own gallery photos -- these photos can only been seen by the uploader ...
0
votes
1answer
24 views

pluggable function in theme, to be overridden by plugin

Is it possible to add a function in functions.php like this: // ACF if ( !function_exists('get_field') ) { function get_field() { return false; } } and then let ...
1
vote
1answer
40 views

Loading jQuery UI in the head

I am trying to load jquery-ui-core and jquery-ui-slider in the head of my theme. Here is my code: function load_jquery_ui() { wp_enqueue_script( 'jquery-ui-slider' ); } add_action( ...
0
votes
1answer
15 views

Updating options into the wp database performance

I have a question about the performance of my plugin. On the settings page of my plugin I have about 20 options the user can change (checkboxes, dropdown and normal text inputs). Currently I just ...
0
votes
0answers
12 views

Show post categories names using apply_filters

I'm trying to change a plugin for each post show his categories names. The plugin use apply_filters to show post name. But how can I show categories names? $output .= $indent . '<li ...
0
votes
0answers
23 views

Restrict my pages from public

In my site I want to restrict some pages from public. How can I do this? example : www.xyz.com/members This pages only access when the user is log in but now its access public also using coping ...
1
vote
0answers
23 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
26 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 ...
1
vote
1answer
25 views

How to execute code only on posts older than 2 weeks

I am trying to modify a plugin to only execute on posts that are older than two weeks. I added the isOldEnough function below to try and do that. What am I missing, here? function remove_metadata() ...
0
votes
0answers
18 views

How to add Default Post Type “Custom” category to custom post type

Hi I have three custom post types 1- student 2 - teacher 3 - academy All three types share should have three categories 1 - subjects 2 - area 3 - qualification level First I thought I should add ...
0
votes
1answer
156 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
48 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 ...
0
votes
1answer
41 views

How can I store data from custom fields to custom tables?

I know how to make custom fields for my custom post types. I also know there is the Advanced Custom Fieldsplugin. But I need to know how I can store my custom fields in my custom post type to my ...
0
votes
1answer
16 views

Hide some portion on single.php base on author

I would like to hide some portion in view post base on author. My requirement is that I have an job board theme and user can post the job. So there is "How to Apply" section in detail page. Now, I ...
0
votes
0answers
115 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
0answers
30 views

Wordpress Development understanding core

Just like any other framework, I preassume that Wordpress is a framework that should be understood before any further development should take place. I am keen to know about the recommended steps to ...
0
votes
1answer
34 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
0answers
9 views

How to change default media attachment link to something user defined in post or page?

Whenever I upload image in post or page, I upload two version, one to display on the site and another for watermark. Whenever someone click on the image, watermarked image is displayed. If the image ...
0
votes
2answers
65 views

Why AJAX response 0!

It is irritating me why AJAX response is 0 !. I want to check whether the email address is valid or invalid on blur.Please suggest me here is my code This is my php code ...
-1
votes
1answer
33 views

Is there a Wordpress Plugin like Imsanity that keeps high resolution originals? [closed]

I'd like to show lower resolution photos on blog posts and their previews on the main page, but when clicked upon, they should still link to the full resolution version. Is there a plugin to do that ...
0
votes
1answer
27 views

Generate Own Custom CSS Button with icon

I recently changed my WordPress theme and noticed that all the buttons in previous theme are gone and are now looking like this on my new theme: [button link="http://.....com" style="download" ...
0
votes
0answers
50 views

Editor/TinyMCE - change double enter key to <br /> and single enter to nothing

I have learned over the last year on Stack Overflow that people here prefer I give all details in the beginning instead of answering 12 comments worth of this stuff later. EDIT: If you don't want to ...
1
vote
1answer
27 views

How to get my plug-in, wrote in php, to refresh on its own every 5 minutes?

I wrote a plugin with custom widgets for the Dashboard. It retrieves information from an XML file, and display the information into the widget. The XML file will be modified a bit every few minutes or ...
0
votes
0answers
17 views

Have the plugin completely render a page

I'm working on a plugin that uses pretty links by using rewrite rules like so: add_rewrite_rule( $slug . '/email/([^/]*)/?', 'index.php?pagename=' . $slug . ...
0
votes
1answer
34 views

Notify new post on page

Is there a way to notify on a dashboard page if there are new posts? Or is this only possible with wp_mail(); hook? Thanks. Casper
0
votes
0answers
30 views

How to Change my website language from English to Danish?

I have developed a website in Wordpress in english language. Now I want to change the language to Danish. Please help me how to change it.. I want to change by easiest and very less time consuming ...
0
votes
0answers
12 views

User editable blocks per page

I'm pretty sure this question has been asked a million times but I can't seem to find an answer. Imagine a page template with multiple sidebars. What I want the site admin to be able to do is create ...
0
votes
0answers
19 views

Custom Event for Wordpress Cron Job Not executing

Method to Execute at Certain Interval function informant_main_action(){ die('working'); } Custom Schedule for Cron Job function my_cron_definer($schedules){ $schedules['weekly'] = ...
0
votes
1answer
51 views

How to include plugin without activation?

I need to include plugin in my WordPress theme without plugin activation. I have these lines: include_once dirname( __FILE__ ) . '/math/class-constrained-array-rounding.php'; include( ...
1
vote
0answers
62 views

Wordpress Visual Composer Row Visibility [closed]

Visual Composer can hide the Row on Ipad (below 1024) and hide it on Iphone (below 480) as well. The problem I am having now is, I have two ROW and I want to make it 1st Row (Visible on Desktop ...
0
votes
0answers
8 views

Screenshorts are not showing in plugin download page

My first plugin is approved and i already uploaded it on SVN. Everything works fine except the screenshorts. In WP plugin download area my plugin is not showing the screen shorts. I have the screen ...
2
votes
1answer
170 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 ...
1
vote
0answers
22 views

Automatically populate title field

I have a WordPress website with Gravity Forms and people can share YouTube videos on it. (The form can be found here: http://shareminecraftvideos.com) Now what I want is to automatically take the ...
0
votes
0answers
13 views

Disable RewriteRules for all plugins and WP programmatically

I want to be able to disable all RewriteRules that WordPress and the plugins use for one page. Is that possible? Basically disable it all when page_id==X.
-1
votes
1answer
33 views

onclick open window [closed]

I am using AS-PDF plugin in WordPress. In this plugin, For opening new window, I would like to add onclick events in it like that function as_pdf_link( $strContent ){ global $wp_query; $strHtml = ' ...
10
votes
3answers
1k views

What could a hacker do with my wp-config.php

I am trying to secure my wordpress blog. I read some posts on the web that I should change my table_prefix and hide my wp-config.php. However, I do not get it? What could an attacker do with my ...
0
votes
1answer
27 views

Migrating site from stage to production server without particular dev. plugins?

I am thinking of some ways to exclude few development/staging related plugins(e.g P3, Query Monitor) from an automatic migration process to production server. For migration I use managewp.com. In the ...