The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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.

Filter by
Sorted by
Tagged with
0
votes
1answer
711 views

Javascript in plugin not working

I'm working on a plugin that relies on several JS scripts. In my plugin file (graph-plugin.php) I've the following function: function initialize_scripts() { wp_register_script( 'int-flot', ...
0
votes
3answers
648 views

site url is not working after migrtaion in worpress, all links are broken

I migrated a WordPress website on my sub directory and change both site_url from wp_options table.Flush the permalink as well but still links are broken. It seems that site_url() is not working. CSS, ...
19
votes
3answers
1k views

How to enable suggested edits?

I like the idea of enabling any user of my website to suggest edits to a page. Much like the edit system on Stack Exchange but different in that anyone should be able to edit, not just registered ...
0
votes
1answer
51 views

the_content() printing DOCTYPE, <html> and <body> tags in the middle of page

I'm building a custom Wordpress theme and I've just come across a bizarre issue where the_content() seems to be printing out the page content wrapped in the following: <!DOCTYPE html PUBLIC "-//...
0
votes
1answer
27 views

get_users(); Is an Undefined Function When Used in Cron Job

I am Using a Wordpress cron to update some usermeta of each user every 24 hours. For which i created a cronjob using the interface provided by my hosting provider. The Cron runs, but the code cannot ...
0
votes
2answers
774 views

How to add separator between default and custom panels in WordPress customizer?

I have implemented theme options using WordPress customizer with a mix of native WordPress customizer fields and Kirki framework. This works great. Now, I wonder if it is possible to add a separator ...
0
votes
1answer
672 views

Executing Javascript in Plugin

I am trying to display a google map using short code for a plugin I am building, but I can not get it to work. Does anyone have some advice on this? Here is my code: add_shortcode( 'show_map', array(...
0
votes
0answers
24 views

Unload a woff file from Wordpress

I'm trying to improve the speed of my website. However i managed to eliminate all the uncessary file except for this that keeps showing up in Pageinsight (it takes 2.5 sec for the load time). I'm ...
0
votes
1answer
654 views

wp_insert_post() inside save_post(): force WP to not update global post object?

I wrote a custom plugin which inserts another metabox on the edit post screens. Once the user saves or publishes an article, I want to create another post with a custom post_type, which works great. ...
0
votes
0answers
13 views

Wordpress revolution slider does not show up on the mobile version

Since a consultant created our website 6 years ago, Slider Revolution has never dislayed on mobile. In looking for answers elsewhere on stack I saw the recommendation to check Disable Slider on Mobile....
0
votes
0answers
13 views

Wordpress Text Find and Replace

I'm Highly Curios to know How we can change any string in wordpress with php function .. i have tried few funtions that truly not worked anymore i have share below function replace_text($text) { ...
0
votes
1answer
743 views

The plugin generated XXX characters of unexpected output…help?

I am working on a plugin that creates a custom post type and then creates a custom template file for the activated theme. The plugin is done editing. But I've received an error while uploading that ...
0
votes
0answers
17 views

Plugin error: td-composer E_COMPILE_ERROR

I got an email to my admin mailbox which states: An error of type E_COMPILE_ERROR was caused in line 17 of the file /home/vol13_6/thefrancisugorji.cf/www/htdocs/wp-content/plugins/td-composer/legacy/...
1
vote
2answers
1k views

Can't Install Standard Plugins on a Local MAMP installation

I've tried to install two standard plugsins (wp-touch was one). I have a local installation under OS 10.6 and MAMP which otherwise seems to work fine. I select the zip file but get the error message:...
0
votes
0answers
7 views

Woocommerce Product Name in Email Link

I'm adding price on application to some products in my woocommerce store and I'm setting up a mailto link on the product page. Is there a way I can include the product name in the email subject? I ...
1
vote
1answer
16 views

How to toggle between two custom fields in WordPress woocommerce 'WC Product Field Group' plugin?

I have a full suit tailoring WordPress website and it using woocommerce plugin. I need 2 custom field groups to show in single-product page. Custom Measurements (Precise) In this method the client ...
1
vote
1answer
17 views

Passing an array from shortcode-function to filter-function

This might be a php question more than it is a wordpress question. I am not sure though, but please guide me if so. I am working on a trial plugin that I use for my training in the first stages of ...
0
votes
2answers
411 views

Display post author avatar for Ultimate Member

I want to show avatar from the post author. I use Ultimate Members and want to show the avatars that are defined via UM. <?php global $post; $url = get_avatar_url( $post, array( 'size' => 48 ));...
0
votes
0answers
33 views

How to fix color picker in caldera forms wordpress?

When configuring the form in the admin panel, everything works, at the front the field with a predefined color does not react at all. All plugins and themes were disabled, the developer has already ...
0
votes
1answer
838 views

Advanced Custom Fields (acf) - Filter Relationship by Taxonomies not Post Type

I have a Field Group looks like this: And I can only filter with Post type which is bad to me at the moment because Woocommerce using only product as Post type: And when I make a post I only see ...
0
votes
0answers
24 views

Use WordPress Transient to show cURL

So there is a small issue that I'm running into that I can't seem to figure out. When i set set_transient('instagram', 'test', 900); it returns the 'test' as the _transient_instagram in the database ...
0
votes
1answer
2k views

The dropdown list in autocomplete is not showing

I want to use jQuery UI and autocomplete in my search form. First I want to check whether any list will be displayed so I copied the code from the documentation and pasted it in my page template. The ...
1
vote
0answers
14 views

wp_schedule_single_event not working: cron job is triggered but nothing gets executed

I'm trying to execute a piece of code asynchronous. I tried to use wp_schedule_single_event like this in my WP plugin: function my_async_test(){ $fp = fopen(wp_upload_dir()['basedir'] . '/log.txt', '...
0
votes
1answer
551 views

WordPress user account activation

How do I implement user account activation in WordPress? (This is not for multisite.) Once the user registers through the site or admin panel, the user should get an email with an activation link. ...
0
votes
1answer
14 views

Crazy redirect happening with no redirects set up

I have a website https://createandgo.com If you hover over 'Design' in the top menu, then click 'How To Write A Blog Post' it adds like 21 URL extensions: https://createandgo.com/blog-writing-tips/-...
0
votes
2answers
795 views

add_action does not call the function

I want to add a custom field in the menu, therefore I am trying to use wp_nav_menu_item_custom_fields. I am using following code but it does not even call the function. I am adding it in a plugin, why ...
0
votes
1answer
16 views

How to write different events from different functions in my file to a log file in Wordpress

I am trying to write events like current user's ip, username, login time to a log file. I have built the functions in php using WordPress hooks for the various events but how to bring them all ...
0
votes
0answers
13 views

Unable to download backup file created using All in One WP Migration WordPress plugin

I have installed All in One WP Migration WordPress plugin and activated it. I have created backup using export as file option. Export has been done successfully, but when I am trying to download the ...
0
votes
1answer
15 views

How to allow code like PHP, SQL, HTML to WPBakery Visual Composer?

I want to allow code inside a textarea to write code with PHP, SQL or HTML... What i want to do is create an element inside the Visual Composer where I can put some code to show it as i write it on ...
5
votes
2answers
2k views

Gutenberg disallow certain custom blocks but keep all core blocks?

I'm writing a function to allow only some custom blocks - essentially I want to register all the blocks, then based on a database table of 'selected' blocks disallow any other custom block. I can ...
2
votes
4answers
2k views

Using plugin functionality in external php script not working

I am encountering a strange problem which I couldn't solve so far. I'm calling a .php script via cronjob (Debian/GNU Linux). To use wordpress functionailty I added: define('WP_USE_THEMES', false); ...
1
vote
2answers
43 views

Shortcode under a Shortcode Multiple times Possible?

[shortcode] [shortcode1 title="variable text"] Some text[/shortcode1] [shortcode1 title="variable text"] Some text[/shortcode1] [shortcode1 title="variable text"] Some text[/shortcode1] [...
0
votes
0answers
34 views

WPML - Hook when language is switched (change user language)

I would like to change the logged in user's language (if someone is logged in) when they change the language in front-end. I'm using the WPML Multilingual CMS plugin in my Wordpress website. I've ...
0
votes
1answer
14 views

How To Use htaccess to Rewrite Link Structure for a Page that is Generated Programatcially

My site uses a plugin Easy Digital Downloads, which creates products that are of url structure, sitename/downloads/{Product} I want to change them to sitename/{product} For example, https://milyin....
0
votes
1answer
35 views

How to define the slug for my custom plugin?

I have created a custom plugin. How do I define its slug? To clarify, if I attach a custom PHP function to the manage_plugins_custom_column hook, and in that function print the value of the $...
1
vote
0answers
19 views

Is it possible to use Snap Scrolling? [closed]

I would like to add snap points to my WP website, but am not sure how or if it's even possible. The CSS properties for such an animation aren't accessible on WordPress.
0
votes
4answers
468 views

Plugins for logo in wp themes? [closed]

Is there a plugin where you can upload image "logo" for use in the site's theme rather than the admin area?
3
votes
1answer
1k views

CMB2 metabox conditional logic

I am using CMB2 for metabox on custom posts. I am adding a metabox by using code below: $cmb_demo->add_field( array( 'name' => __( 'Test Text', 'cmb2' ), 'desc' => __( '...
0
votes
1answer
53 views

Any method to make specific widget for every post and page?

is here any method , that can make specific widget for each post and page? I mean, for example here is widget html: <div id="heatmapthemead-secondary-sidebar-container" role="complementary"> &...
0
votes
1answer
886 views

AJAX login without a plugin does not work. when add a action to function.php

I am using wordpress ajax login without a plugin. I want to not be allowed users access to the WordPress profile after login, Because i have designed a specific profile in the link: http://www....
0
votes
0answers
22 views

How to add third party script to AMP For WP plugin?

I want to add leadpages embed script to AMP post detail page, here my script code: <script src="https://static.leadpages.net/leadboxes/current/embed.js" async></script> Reply asap if ...
0
votes
1answer
859 views

Username Variable in custom links?

I'm trying to use custom links in the php code to link to buddypress profile pages. Basically, I need a way to create a username constant so I can make links like domain.com/members/--username--/...
0
votes
1answer
409 views

worldpay class not working with namespace in WordPress

I am trying to create Worldpay gateway with help of Worldpay library and my own extending code. Here is my code which I tried and failed to work on. require_once('init.php'); use lib\Worldpay; if($...
0
votes
0answers
11 views

Is it possible to add “Custom post type category (Taxonomy)” in inbuilt category widget in Wordpress

I am working with a custom post type. so I want to display the category widget that includes the custom taxonomies. So please help me with that.
0
votes
3answers
414 views

How to make my wordpress site Multi-region

I have a website that I want to make multi-region. In this case I want some pages of the website to be different on each region, also the menu should be different. For example. I want a website that ...
2
votes
2answers
772 views

Multisite Widget/Content

I'm using WordPress multisite and need to display content across all subsites in the sidebar. This is a network of 50+ sites so updating all 50+ sidebars with this content every few days is not ...
0
votes
1answer
25 views

5 PHP Fatal error: Uncaught ArgumentCountError (Cannot Find)

I recently migrated a WordPress site over from PHP5 to PHP7. One of our custom file listing functions (outputs a listing of files from a folder on a server directory) is failing on the new server on ...
0
votes
0answers
6 views

Attaching Multiple Posts to my site

I need to find a way to upload multiple posts to my site. Every post will have to show some text, the link of the game and an image. At the moment, I have to create one post at a time. I used some WP ...
0
votes
1answer
789 views

How to get menu location in wp_update_nav_menu hook

I want to get the menu location in the wp_update_nav_menu (during menu save action) add_action('wp_update_nav_menu', function ($id, $data = NULL) { error_log( var_export($data, true) ); ...
0
votes
0answers
17 views

Adding a new field to the address field type in gravity forms

I'm following the documentation for adding new address types in Gravity Forms located here: https://docs.gravityforms.com/gform_address_types/ My goal is to add a new dropdown for County where State ...