Questions tagged [plugins]

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.

2,766 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
36 views

Shortcode Plugin to dynamically build a shortcode via `do_shortcode` not working

Basically I want to create a plugin that provides a shortcode for use anywhere. This plugin will query the user's preferences and render another shortcode/plugin with proper settings (to cater ...
1
vote
1answer
39 views

install robots.txt to wordpress website admin

our website is http://syno-int.co.kr and using wordpress. I tried to install robots.txt to plugin section, but when I put zip file in it, it shows like this. Unable to create directory wp-content/...
1
vote
0answers
22 views

Wordpress site periodically goes down

my site https://mediatrends.me/ periodically goes down. It works fine and then all of a sudden any page becomes unreachable in every web browser. "site can't be reached", etc. After a few minutes it ...
1
vote
0answers
43 views

Server configuration for WordPress - Do I need install PHP-SSH extensions for Wordpress on Fedora28?

Migrated from Stackoverflow & Unix & Linux: Recently I tried to setup a Wordpress server on Fedora28 based droplet on Digital Ocean. A followed some tutorials and the result was the same: ...
1
vote
0answers
28 views

limit value taxonomy based on previous taxonomy value wordpress

I have created a custom Post Type which Holds up-to Two Taxonomies called "country"- values: "USA", "Russia", "China" , "city" - values: "Chicago", "Moscow", "Beijing", I want when user in taxonomy "...
1
vote
1answer
189 views

Dynamic dropdown select values depending on other custom field value

i have custom fields like this: "country" - values: "USA", "Russia", "China" "city" - values: "Chicago", "Moscow", "Beijing" I want when user in custom field "country" choose value "USA" after that ...
1
vote
0answers
14 views

Contributive page where people logged in can write

I'd like to have a page on my wordpress site where people can add a content really simply. They would click on a link that open a popup where they can login, add a content, and that's it. It would be ...
1
vote
0answers
14 views

User registration

I'm working on a WP project where I want the user to be able to register via my WP page, and later I want to receive a mail about this user info, To either confirm or deny their registration (this I ...
1
vote
0answers
401 views

Sending HTML emails via wp_mail not working properly

Task to accomplish: 1) A user types information in a form 2) Via ajax (method: POST) the form gets posted to wordpress 3) Wordpress takes the form 4) Wordpress creates an HTML-email which contains ...
1
vote
0answers
89 views

Masonry images not working

Until yesterday, all 10 tiles were showing on the main page on this website. After updating 3-4 pages and adding a "blog" function to them (separated by category), only 3-6 tiles will show at any ...
1
vote
0answers
39 views

Best way to maintain and update 3rd-party WP plugin when developer is unresponsive?

I recently purchased a 3rd party WP plugin (and started a site) with a view to starting a business. The plugin was first released only a few months ago.This particular plugin provides essential ...
1
vote
1answer
317 views

How to block XML-RPC attack?

Using Apache Web Server For blocking xmlrpc, adding this code into .htaccess file <Files xmlrpc.php> order allow,deny deny from all </Files> But while adding this The domain being ...
1
vote
1answer
33 views

WordPress plugin output formatting

I'm currently working on my very first Wordpress plugin, and it is coming along nicely. I do have one question about the formatting of the generated output. At the moment, the plugin outputs a table ...
1
vote
0answers
59 views

Plugin dependencies: show notice like theme plugins dependencies

I've developed a plugin that its core doesn't rely on any external plugin but there is some functionality that can be unlocked if others plugins are active. What I would like to achieve is to display ...
1
vote
0answers
316 views

Customizing NEXTGEN Gallery To link images to pages

Instead of linking to lightbox I'm trying to link my thumbnail images to a page or 3rd party website. I found http://astronautweb.co/nextgen-gallery-custom-thumbnail-link/ but was from 2011. I'm not ...
1
vote
1answer
567 views

How to redirect Old Post URL to new Post and keep Old post Comments?

How to redirect Old Post URL to new Post URL and keep Old post Comments? is it possible. can any one give me plugin to do this.
1
vote
0answers
74 views

What can be reason for no plugin-strings available under stable section on translate.wordpress.org?

I cannot see any plugin-strings under the stable section on translate.wordpress.org. What can be reasons for that? P.S.: Under development section, I can see all the plugin-strings.
1
vote
0answers
56 views

How generate 200% image size and save with suffix @2x

I need to know is it possible to generate 200%,200% image size and save with suffix @2x simply in WordPress? want to enable a simple retina ready theme.
1
vote
0answers
41 views

Finding which plugin uses cloudflare (due to GDPR)

after creating a wordpress homepage using quite a few existing plugins, due to the european GDPR (General Data Protection Regulation) i now have to limit the calls of any external resource to a ...
1
vote
2answers
553 views

Replace default og:image tag YOAST

I'm trying to replace the default image picked by yoast (featured image) with a custom with the relative og:image:width and og:image:height, but seems a mission impossible! I tryed with this: ...
1
vote
0answers
26 views

Are functions in main plugin file called before function bound to register_activation_hook runs?

In my plugin, I am doing a minimum-supported PHP version compatibility check via a function bound to register_activation_hook and halting activation for those on PHP version less than the minimum ...
1
vote
0answers
60 views

After plugin activation all users marked as Spam

I want to use Buddy Press. I `ve installed it, activated, then I automatically logged out. When I want to log me in – there is a message – my account is marked as spam. My Testaccount too. I think all ...
1
vote
0answers
50 views

Tracking changes in admin-page so user gets warning when leaving the page

An admin page with metaboxes and custom fields works fine, but when the user forgets to click "update" there is no warning "Leave Site? Changes you made may not be saved.". This warning only works on ...
1
vote
0answers
34 views

How to change wp prefix for custom post type only?

I have Two domain for e.g example.com (Database prefix wpone_) demo.example.com (Database prefix wptwo_) Database name: myrestaurant Database is the same for two domain just only prefix different ...
1
vote
0answers
64 views

create link/button to purge cloudflare cache on post

good day , how to create a button on post so that visitors can purge it own post cache on cloudflare ? i found this bash script and use to manually flush single url #!/bin/bash if [ -z "$1" ]; then ...
1
vote
0answers
185 views

Limit post creation by role

Hi I want to limit post count a role can create. I am currently using Bainternet Posts Creation Limits. It works from dashboard but not for rest api.
1
vote
0answers
116 views

I want to auto populate data in three fields if one drop down is selected

I just want to add auto populate in my WordPress plugin. If i select a value in drop down menu then on that drop down value based i want my three fields are auto filled. This is my js file code. ...
1
vote
0answers
19 views

Best place for if/else piece of code related to custom plugin?

Currently this code is placed inside header.php of my theme wp-content/themes/my-custom-theme/header.php. It's required for all pages. <?php include_once( ABSPATH . 'wp-admin/includes/plugin.php' )...
1
vote
0answers
758 views

Save custom attributes of product in woocommerce

I have some custom attributes for each product in woocommerce, I can edit them at the Attributes tab. I can also read them using this code $product = new WC_Product($product_id); $v = $product->...
1
vote
0answers
19 views

Making sure that a plugin's scripts and stylesheets are included for dynamicaly loaded content

I'm currently making a theme that uses admin-ajax.php to dynamicaly load pages and posts. Some of this content uses plugins like final tiles gallery and Video Embed & Thumbnail Generator. If ...
1
vote
0answers
231 views

correct way to include a library(and its dependent libraries) in wordpress development

I am trying to create a wordpress plugin using reactjs. I am facing an issue when I try to include a external library(react-image-lighbox) using wp_enqueue_script. what is the correct way to include a ...
1
vote
0answers
643 views

Filtering WooCommerce Orders by Category

I am using WooCommerce as an ordering system online. I will be having many categories for each products. How can I allow the admin or the shop manager to filter the orders page by product category? ...
1
vote
0answers
61 views

How to make a implement queue for scheduling tasks in WordPress?

Is it possible to implement some queuing mechanism for task scheduling? In my plugin, I want to run a task triggered by cron for 5 seconds and if not complete, save the state and call another Async ...
1
vote
1answer
81 views

Calling an attribute from a plugin shortcode

I'm using this plugin to show the reading time of my post: https://jasonyingling.me/reading-time-wp/ However, I have modified some stuff because I want to be able to use it with different languages ...
1
vote
0answers
547 views

Session destroyed on page redirect

I am developing a plugin where I have started a session on init hook. I have a form which when submit calls a function which uses SDK (i.e payment is handled here). If this function returns FALSE ...
1
vote
0answers
1k views

Fatal error: Call to undefined function cmsms_theme_page_layout_scheme()

I am using a modified version of the Social Activity theme from CMS Masters, and was trying to change the hardcoded versioning of the stylesheet in the header in order to reflect CSS changes I made. ...
1
vote
0answers
293 views

WooCommerce Dynamic Cart Pricing

I needed to calculate the price of a typeface based on the 3 different licence values selected. I couldn't find a way of doing this with variations unless I created a variation for each possible ...
1
vote
0answers
39 views

Redirecting thousands of posts that currently have no category in their permalink when changing permalink structure to include category

Currently I don't have categories or anything else in my URLs, posts are just: www.domain.com/%postname%/ I am updating my permalink structure to include the category though (actually a category ...
1
vote
1answer
92 views

Where these .js file come to source code?

on my blog in source code there are 3 Javascript also jquery file. It comes from wp-include but from where are them loaded? Can i not combined them in one file? My source: view-source:...
1
vote
0answers
17 views

Submit page limited in time to upload image

I’m not sure where to ask this and where to start to search for this kind of information. Excuses in advance if this is not the right place. I’m now the admin of a site done with Wordpress for and ...
1
vote
0answers
26 views

Deactivating all plugins and reactivating one by one, fixes conflicts. Why?

I was experiencing some Javascript errors thrown in Google Chrome debug console, so I have deactivated all plugins and then re-enabled them one by one. No more errors! How can it be that following ...
1
vote
0answers
724 views

Metabox not show in categories custom post type cmb2

it is possible to add a field in the categories (tags) in taxonomy? this is my code in functions.php function post_types(){ register_post_type('products',array( 'labels' =&...
1
vote
2answers
385 views

uninstall.php does not appear to trigger when uninstalling my plugin

i am new to plugin development in wordpress and i have have this simple test plugin that i am working on. The problem i am having is that the uninstall.php file does not appear to get trigger and as ...
1
vote
0answers
708 views

Why “Call to a member function on a non-object” in plugin only?

I am embarking on converting my PHP script, which calls a news search API to pull down news stories, in to a WordPress plugin. It's early days, I only really have the plugin header so far. I will ...
1
vote
0answers
79 views

Bulk edit WP posts to update embeded images with new alt tags

I have a client site that has approx. 2000 posts, most with 2-3 images embedded. Recently we've gone through the media gallery and given all the images proper meta data, clean titles, descriptions, ...
1
vote
1answer
121 views

How to remove plugin metaboxes from edit.php

I want to remove some metaboxes, that was added to page edit.php by thridparty plugins. I insert this code into functions.php: function vpm_remove_meta_box() { remove_meta_box( 'ortext-...
1
vote
0answers
114 views

Wordpress wp-admin/network/plugin-install

I am having issues that seem to be related to trying to change a multisite installation to use www. The site was initially setup without the www. I added code to .htaccess to redirect all urls to ...
1
vote
0answers
20 views

Plugin dropping pagination variable

I'm having problem with a plugin. In the plugin, I noticed the url string switches after the page load and the '&paged=#' disappears. For example: On page load: http://www.domain.com/wp-admin/...
1
vote
1answer
28 views

A new translation folder overrides my usual translation from “nowhere”

So I got to work on something really specific and strange on an old Wordpress I havn't edited already. The website is in French and English and this is a translation problem. To summaries the problem ...
1
vote
1answer
2k views

How to add checkboxes for a woocommerce product?

I have a wordpress site that does food catering. I want to be able to do the following configuration when placing an order: Days: Select the weekdays via checkboxes Food Options: Select the type of ...