Tagged Questions

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)

2
votes
5answers
168 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
63 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
29 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
23 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
43 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
13 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
34 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
29 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
24 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
33 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
49 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
53 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
38 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
61 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
29 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
49 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
41 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
50 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
50 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
118 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
34 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
20 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
70 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
14 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
26 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
51 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
31 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
51 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
32 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
35 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
29 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
25 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
43 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
14 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
30 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
19 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
193 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
49 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
48 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
132 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 ...