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 (3)

0
votes
1answer
39 views

Create dynamic page content from custom Wordpress plugin page

I would like to create a custom Wordpress page from a plugin displaying content that is not from Wordpress with 2 get parameters and apply rewriting rules on it. Let's say I have a file called test....
0
votes
0answers
11 views

Best way to change the author's name on view only

I'm developing a plugin that allows users to sign in and make posts. However, I have a substantial number of users and don't want them to be added as users in WordPress's user database, so I have my ...
0
votes
1answer
29 views

Getting a Page via its post-name using WP REST API v2 and Postman

Using Postman as a Chrome extension I have had success accessing Pages(not posts as I don't use them) from my WP website. Having trouble pulling data using the post-name url that I set way back in ...
0
votes
0answers
24 views

Post information from plugin to static page Wordpress

I'm writting a plugin to Wordpress and i need to post an information from date base to static page. I do it by shortcode. Here is an example of plugin function code: function show_list_oil_filters($...
2
votes
1answer
25 views

Licensing of freemium plugin

I know this has been discussed elsewhere before but still it is not clear to me. I am currently investigating how to publish a freemium plugin: The free edition is a fully functional plugin, that I ...
5
votes
3answers
197 views

how to include other plugins css files in a shortcode?

I've coded a plugin that creates a shortcode, among other things. That shortcode expects a post_id parameter, it extracts the content of that post and it returns the filtered content of that post (e.g....
1
vote
2answers
37 views

Output array into one table cell

I'm trying to output an array into one table cell. Here is a truncated version of what I have now: $prerequisites = get_post_meta($post->ID, 'opl_prerequisites', true); $output .= '<td>'; ...
0
votes
1answer
15 views

Symlink a plugin in local development, works but got Debug error message - Windows 10

I read that WP 3.9+ supports symlink (Article here). So, my plugin resides in C:\Github\my-plugin. while my project is at C:\Project\my-site. I successfully symlink it by using this command (run as ...
0
votes
1answer
21 views

Using activated_plugin to run code

I am using Site Origins Page Builder plugin and want it to install when my theme is installed, so to do that I am using TGMPluginActivation. This correctly installs and activates a bunch of plugins. ...
0
votes
0answers
31 views

Reorder posts in a custom Meta Box

I have a list of Posts (of a Custom Post Type) that is displayed in a Meta Box for a different CPT. In this Meta Box I need to enable the user to reorder the posts. Currently, the list of posts is ...
2
votes
1answer
16 views

What user roles should have wp_unique_post_slug_is_bad_flat_slug filter applied?

I have a plugin where I need to reserve some slugs so I am using the filters wp_unique_post_slug_is_bad_flat_slug and wp_unique_post_slug_is_bad_hierarchical_slug. I apply them like this on my plugin ...
1
vote
1answer
16 views

how an array index could be a file path

In the function below at the end the variable $plugin_path is used as an index of an array. How could it be possible since some lines above we have the call to a function which returns a string (see ...
1
vote
2answers
28 views

How to add an image from web-link?

I currently have this code from a plugin. [imdbi meta_name=poster] This cache an Image Link, and it simply display the link, I want it to display it as an image. Is this possible?
0
votes
0answers
16 views

Display admin notice on category creation

I'm trying to display a custom admin notice when admin creates new category but can't make it work. My code so far is: function pippin_admin_notice() { echo '<div class="updated"><p>...
-1
votes
1answer
38 views

Is there a WP-Plugin to convert PNG to GIF? [closed]

I want to upload PNG-files, which convert wordpress in GIF-files. Is there a WP-Plugin to convert PNG to GIF? Thank you
0
votes
0answers
19 views

Plugin - overwritting entire non-pluggable function

In order to achieve what I want to do with my plugin I need to modify several functions inside comment.php and comment-template.php ( for instance some code lines like if ( is_user_logged_in() ) : ) ...
4
votes
1answer
40 views

What exactly does $wp_filesystem->abspath() return?

The real problem I have when using the $wp_filesystem is defining the correct paths. In the documentation of the filesystem the path (for example for the plugins directory) is usually set like this: $...
0
votes
0answers
23 views

Why a WP_Query instance using 'tag' doesn't work?

everybody. I'm developing a small plugin and I need to fetch some posts with a very simple query: $args = array( 'tag' => $tag ); $fc_query = new WP_Query( $args ); The point here is ...
0
votes
0answers
13 views

Incorporate Co-Authors Plus template tags into Unpress theme

I am not quite familiar with coding and need help. Currently, I am managing a website that uses UnPress theme on Wordpress and installing co-author plus pluggin. I would like to incorporate the ...
0
votes
1answer
18 views

Add custom columns in custom post type browse page

I made a plugin which adds a "member" custom post type. I customized the edit view (with the editor hook) to get only the fields I want and store them in the database. I have fields like "name, ...
0
votes
0answers
16 views

Hook into Post Exirator's expiration code

I need to run some code when a post from a custom post type is set to draft, which occurs automatically with the Post Expirator plugin. My code is set to run on the publish_to_draft action, however I ...
-3
votes
1answer
54 views

Embed php code in custom field of a plugin [closed]

I am using this plugin https://wordpress.org/plugins/emailcoauthoronpost/ in my website. This plugin shoots an email to the author of the post with a link to my website. But I need to send the ...
0
votes
1answer
25 views

How do I disable Photon on a non-premium WordPress site? [closed]

I have a site with an image in the sidebar hosted on an external server. I change this image every so often on the external site, but the name of the file stays the same. Recently, I've noticed that ...
0
votes
0answers
36 views

How to include JavaScript script only on specific page [duplicate]

I am creating my own widget. I need to use custom css and js files. I have used wp_register_style`wp_enqueue_styleandwp_register_script\wp_enqueue_script` functions in order to register custom styles ...
2
votes
0answers
28 views

Disable plugins on cron and ajax page

I want to disable few wordpress plugins on my cron and an ajax page. I have already tried option_active_plugins filter but it's not working. I have checked and found most of the people say that ...
0
votes
2answers
48 views

Surviving Wordpress and plugin updates

In the phase of developing a new wordpress-based site, I'm evaluating also future pitfalls such as upgrades. Unfortunately, there's no guarantee that a third party plugin will not be discontinued. But ...
0
votes
1answer
23 views

How to get all posts belongs to a user between a certain date

I am writing a plugin for my company so I need to get all posts belongs to a user between a certain date which is given by another user. Then I want to count words for each post and finally add them ...
0
votes
0answers
14 views

change template by permalink endpoint via plugin

I'm trying to change template using this code: add_filter( 'query_vars', 'add_query_vars'); function add_query_vars($vars){ $vars[] = "photos"; return $vars; } function ...
0
votes
0answers
21 views

Multi-tier Categories by post type?

We've been using CPT UI to allow us to create segregated categories for different post types. Unfortunately, this plugin only allows single-tier category view in the admin area. What I'm after is ...
4
votes
2answers
357 views

Get php var inside javascript file (making plugin)

I was making a plugin and I have a javascript file where I want to take some options saved in the database to show well the function. So I have this: function wp_home(){ wp_enqueue_script( '...
7
votes
1answer
91 views

Development of a Wordpress Search Plugin - Best Practices

Searching for around two days to find an answer to my question, I finally registered for this StackExchange. :) My Question is not simple, so I need to start at the very beginning. But to give you an ...
1
vote
1answer
42 views

Suggestions on Approach to New Plugin I'm Stuck On

I'm a newbie plugin developer, and I've had an idea for what I though would be a simple to build debut plugin, but I seem to have reached a brick wall with it and wonder if anyone can suggest some ...
0
votes
0answers
18 views

WordPress loop by three meta values with random order

We have three custom fields with names plan_name1,plan_name2 and plan_name3. Need to check if these meta keys has values (1,2,3) OR (2,3,1) OR (1,3,2) OR (2,1,3) OR (3,2,1) OR (3,1,2) We mean ...
0
votes
2answers
34 views

Create Custom Post type that uses Page.php template

I am creating a plugin that registers a custom post type, and I want it to be displayed using the theme's page.php template, rather than the post.php. I set the hierarchical flag when I register it, ...
0
votes
0answers
25 views

Customizing a category archive page through plugin

I have created a plugin that adds a custom post type called "Activities". This post type's archive shows all the categories, and then the categories each have a page that includes the posts contained ...
0
votes
0answers
17 views

install problem can't find wp-load.php file

This is probably a simple problem, but can't figure it out... 1) I installed the wordpress file directly under the xxxx directory; wp-admin, wp-content, wp-includes are all within wordpress file. 2) ...
0
votes
0answers
19 views

Multi-step Frontend Filtering to Reveal Content

I'm not even really sure the best and easiest way to go about doing this - or what the right verbiage is to properly describe what I'm wanting to do. On my site I'm looking to change this selection ...
0
votes
2answers
51 views

How to quickly reorder posts in the admin panel that will persist for the wp-api

I generally use the Intuitive Custom Post Order plugin for any WordPress sites I work with so clients can order their posts visually. For this project, I'm using WordPress as an admin panel and ...
0
votes
1answer
21 views

What goes into wp_postmeta and why?

we are using WordPress in a site that has Places and eventsOn running, however we notice that sometimes the newly inserted place data goes into the wp_postmeta table others it doesn't... Searched for ...
0
votes
0answers
18 views

Escaping and sanitization

I have created a custom metabox for a certain plugin - events CPT. In it I can add talks by event days, with images, speaker names, descriptions, titles and times. So all either input fields or ...
0
votes
1answer
31 views

function of parent not working in childtheme

I have a plugin used on a parent theme which uses shortcode. The plugin (shortcode) works on the parent theme but when I switch to child theme it no longer works. I've only added the child theme code ...
3
votes
3answers
106 views

PHP Script to Download Latest PLUGIN Version

I use the following code in my PHP script to automatically download the latest version of WordPress... $wordpress_zip_file_url = 'https://wordpress.org/latest.zip'; file_put_contents("wordpress.zip", ...
0
votes
1answer
47 views

Wordpress Registration Email by Role

I'm wanting to send out a custom html email to a new user based on their role during registration. So, I have 2 roles that will be specifically registering on the site: photographer and subscriber and ...
0
votes
1answer
24 views

Attachments plugin cannot click media library button [closed]

I have installed the Attachments plugin (version 3.5.7) to upload multiple images to a post in my post type 'shop'. The problem: For some reason I cannot click the insert button of the media library ...
0
votes
1answer
20 views

mu-plugins Aren't Loading - Need Help

I've looked at other posts regarding mu-plugins but I don't understand yet. Here's the situation: My site is hosted by a service that automatically set up 2 caching plugins. Cloudflare and OP Cache....
1
vote
0answers
68 views

disable active plugins for specific theme

I want to disable some plugins from a specific theme.I am using deactivate_plugins hook to deactivate. following is my code. add_action('wp_head','disable_plugins'); function disable_plugins(){ ...
1
vote
1answer
42 views

Editable form for WordPress plugin options page

For my new plugin Scripts and Tags Manager I want to add the possibility for the users to edit rows and add / remove rows. Each row is a form element that contains a text field for the dynamic ...
1
vote
3answers
62 views

How do I apply style to each category of a list?

I need to create a simple plugin to show a list of categories inside the body of the post and, as I am new to coding, I searched for the basics and started to make little changes; it looks like this, ...
0
votes
2answers
15 views

WordPress core update fails - no issues with plugin updates

My WP installation does one-click plugin / theme updates without any hiccups, but updates to the core always fails. No specific reason is cited, except for a suggestion that it may be due to file ...
0
votes
1answer
27 views

Is there any hook to change media html in post? [duplicate]

When I add image to a post, wordpress makes this html format in theme. <p> <img class="aligncenter size-full wp-image-455" src="http://localhost/pb/wp-content/uploads/20116/04/huracan-...