All Questions

-1
votes
0answers
9 views

Problem with WP site

could anybody help me with that error: Fatal error: Uncaught Error: Call to undefined function admin_url() in /data01/virt78153/domeenid/www..ee/htdocs/wp-includes/functions.php:21 Stack trace: #0 /...
0
votes
0answers
6 views

Make authorization mandatory on custom routes

I'm setting up multiple custom api routes in my wordpress theme and I would like that to require a JWT token to access. So I have followed the steps in order to get the JWT Authentication for WP Rest ...
0
votes
0answers
10 views

Query string form $_GET['value'] is not working as meta value in wp_query

Here is my code.How strange! if I put any static value replacing $s_string, it's working fine. Thanks in advance for any help. $custom_fields = new WP_Query(array( 'post_type' => '...
0
votes
0answers
10 views

WP Admin Bar transparent on some pages (.screen-reader-shortcut)

I have an issue where the WP Admin Bar is transparent on some pages on the site. It's there and all the links are clickable, however, it is not viable. I am using a child version of the Divi Theme ...
-2
votes
0answers
29 views

How No WordPress Theme Source Code is on the source code site [on hold]

can check the template of this site http://javooneirani.ir You are using a code that does not refer to a particular template and uses the default WordPress css! How make this themes?
-1
votes
0answers
14 views

Missing directories in wordpress? Mikado issuse

I have a problem with mikado plugin on WordPress. When I installed the theme and try to import demo I get errors on site: Warning: PHP Startup: failed to open stream: No such file or directory in /...
0
votes
0answers
15 views

Export wordpress image ID based off keyword search

I would like to know how to go about exporting a load of image ID's based off the image name. For example 'how to dig gold' search may have a load of images like how to dig gold.mp4001.jpg how to ...
-1
votes
0answers
9 views

my pagination in front page just show only same post

I am developing a website with edd and I wanted to show my download archive as a home page. I used this function: add_action("pre_get_posts", "custom_front_page"); function custom_front_page($...
0
votes
0answers
10 views

Show Gutenberg Categories Block on custrom plugin

Is there any way to import/use the gutenberg categories block in a custom gutenberg panel? I want to avoid to write it again by myself
0
votes
0answers
15 views

Display data in using WP_List_Table

How to display data using WP_List_Table ? My code is like below class myTable extends WP_List_Table { var $example_data = array( array('ID' => 1,'booktitle' => 'Quarter Share', '...
0
votes
1answer
20 views

How can I automatically delete comments that contain a URL?

My WordPress website is being bombarded by spam comments. Nearly all of them contain a valid URL. How can I delete these comments automatically? I don't want to put them into the review queue; I just ...
0
votes
0answers
7 views

How to upload a file to a different directory, but not its preview images?

I use a filter (in my custom plugin for my website) to force upload of files loaded with an Ultimate Member plugin form in a directory different from the default 'uploads' one. The filter works ...
0
votes
0answers
7 views

Add different sticky sidebar to posts and pages

Good day. How do you add different sticky sidebars to post and pages? Usually in every theme there is this universal sidebar in widget options but I want to do is for every post or page, a ...
0
votes
0answers
6 views

Cart view not working

When to my cart view on menu it's not work link doesn't go anywhere. it's still in same page.I have been searching for long but I don't found any answer. some answer told that i have to go to ...
0
votes
0answers
6 views

Extend Cookie with auth_cookie_expiration not working

I was trying to extend the Login Cookie with the following Code function expiration_filter($seconds, $user_id, $remember){ //if "remember me" is checked; if ( $remember ) { //WP ...
0
votes
0answers
10 views

Reading data from XML file and printing selected data

I have a blog feed which is in an XML file: <item> <title>Title</title> <link>link</link> <pubDate>Date</pubDate> </item> I'm trying to ...
0
votes
0answers
16 views

How to get all the terms from a custom hierarchical taxonomy via REST api?

This post can be a solution, but I guess there could be something more linear or native: https://stackoverflow.com/questions/42462187/wordpress-rest-api-v2-how-to-list-taxonomy-terms The official ...
0
votes
1answer
19 views

Enable Excerpt field inside the post editor for pages

How can I edit the post excerpt for pages? This field is visible inside the post editor for single posts only. Not for pages. Is there any option to show it?
-1
votes
0answers
12 views

How to enable a landing page for woo

I've created (with SiteOrigin) and tested a new landing page for one of our product categories. The test showed, that this new page is performing better than the default category page from woo. Since ...
-1
votes
0answers
9 views

Wordpress check box unchecked on null value ternary operator [plugin development]

I'm trying to use wordpress plugin development, without a checked checkbox getting an error. <?php global $options; ?> <input name="settings[enable]" type="checkbox" id="" value="1" <...
0
votes
0answers
7 views

How to adjust text’s width and put it at center of post (Visual) editor?

[Disclaimer: I'm not a developer of any sort, but willing to take the time. (Can do a bit of CSS, though.) Also, new to this forum.] I’m using Anders Norén’s Hemingway theme. I haven’t tried ...
0
votes
1answer
16 views

Add admin page to the top of the admin panel

I want to add a page to the admin panel of wordpress. If I want to link it into the menu on the left, I can use add_menu_page. But I want to add it to the top of the admin panel. How can I do this?
0
votes
0answers
9 views

recaptcha error invalid site key

I installed recaptchaV2 on the wordpress dashboard login and was working fine. But when I applied a new new recaptchaV3 keys and replacing the original (v2) keys with these new keys in Wordpress. Now ...
0
votes
1answer
29 views

Is it possible to enable and disable wp debug from functions.php?

I want to make 'WP_DEBUG' true or false from functions.php. Is it really possible?
-1
votes
1answer
16 views

Where can I save plugin data?

I created a plugin which has a shortcode that displays a button in a form. I would like to track the button clicks with an onclick() script and save the amount of clicks to a meta field. I am just not ...
0
votes
0answers
19 views

Trying to get property 'post_content' of non-object

I'm creating a wordpress theme and I created a shortcode to show an abstract of a post (the first image, title, and link) from a post (by its ID). To do this, I created a function to get the first ...
0
votes
0answers
13 views

Communicate Wordpress Custom Plugin from my site to a Job Board Site

Need some help with WPFusion since I am pretty new to it. Currently, I am transitioning from using iMember360 as a CRM to Infusionsoft. As a middle man between Wordpress and Infusionsoft, I am using ...
1
vote
0answers
26 views

How to display text between product thumbnail and CTA button on WooCommerce “Shop” page

I have a WooCommerce shop page displaying a series of books. I'd like to add a line of text between the thumbnail and its corresponding 'View' button. I thought this would do the trick: add_action( ...
0
votes
0answers
12 views

add_filter is not working on WooCommerce product page custom layout built in Flatsome UX Builder

I have written a function to make the WooCommerce product not purchasable if a checkbox is checked in admin, but the add_filter('woocommerce_is_purchasable', 'ar_custom_is_purchasable', 10, 2); works ...
0
votes
0answers
11 views

Send email to different recipient based on zip code

Can anyone explain best way to setup Contact Form 7 to do this scenario: I have about 150 zip codes that are divided among 8 different representatives, each with his own email address. If the zip ...
0
votes
1answer
7 views

How to 301 redirect from url with post id to permalink with post name (slug)?

my posts have urls of two different types: one with post id and other with post slug: /post/789 /post/my-post-slug i'm doing this using: add_rewrite_rule( 'post/(\d+)/?', 'index.php?p=$...
0
votes
0answers
12 views

Woocommerce doesn't cancel orders on hold

I Need to cancel the on-hold orders in a certain scenario after 4 hours from creating the order. Example: 2 Customers 1st Customer Make Order at 5:00 PM so its on-hold status ( i want it to be ...
0
votes
0answers
3 views

I'm using rtMedia and Youzer. Can Shortcodes be used to display a video gallery?

Please be patient if This doesn't make sense. I'm using Youzer which adds advanced social networking features to BuddyPress. I also added rtmedia to allow users to upload videos. How do I use the ...
0
votes
0answers
8 views

Remove Order List Row Link in WooCommerce Admin?

I wanna remove the functionality of when you click on a order row in Orders in Admin, you will be sent to the edit page for that order. I know it's added with jQuery in a js-file in the WooCommerce ...
-1
votes
0answers
14 views

How to edit woocommerce checkout fields

I want to make a dynamic select where the user will put state, there will appear the cities of this state, then will put city and will appear the universities of this city for him to choose, how can I ...
0
votes
0answers
8 views

Woocommerce custom field + populate with referrer

I'm hitting a wall with one problem for weeks now. So our woocommerce shop have questionnare and after quiz user is redirected to proper product. On product page we get all data from quiz in URL to ...
-1
votes
0answers
15 views

Alt and title attributes for WooCommerce gallery on product page

I have code to create alt and title attributes for main product image on WooCommerce single product page: // Change alt & title attributes of main product image to product name. add_filter('...
0
votes
0answers
14 views

Multiple checkboxes Gutenberg control

I am trying to create a similar Group Checkbox Control like the WordPress categories listing but have not been able to save my values. I am not convinced I am taking the best direction, but seem to be ...
0
votes
0answers
18 views

Not expected result with multiple search terms in wp_query

I have WooCommerce installed and I'm trying to find products with size "60x60". Sometimes in title were used normal x symbol and sometimes it's a cyrillic х. Now i'm trying to find all products with ...
0
votes
1answer
20 views

Multisite with different domain names on different servers

Consider the following servers with their domain names: Server A: Domain A1 (Master Domain) Domain A2 (Addon Domain) Server B: Domain B1 (Master Domain) Domain B2 (Addon Domain) First, ...
1
vote
0answers
8 views

oEmbed 404 errors when trying to use embed block

When trying to add a Youtube Embed Block in the Gutenberg editor, I'm seeing these 404 errors in the browser console: GET https://example.com/wp-json/oembed/1.0/proxy?url=https%3A%2F%2Fwww.youtube....
0
votes
0answers
13 views

Unable to autoplay and loop a cinemagraph from Imgur

I've tried a number of different codes but they don't seem to work. This is my current one, and although it loads fine, it doesn't autoplay or loop, and if I hit play, it would either not loop, or ...
0
votes
0answers
11 views

Another site within WordPress page, disabling 404 error for pages that exist but outside of WP system

TLDR; Is there a way to disable WordPress's 404 feature for certain pages? On one domain, I am running a WordPress site and, under the same domain, I am also trying to run another site parallel to ...
0
votes
1answer
9 views

API getting null values with wp_remote_post

I'm trying to post some data to an API and I keep getting null values in the fields. My PHP code: $url = 'https://apiconnector.com/v2/address-books/136517/contacts'; $username = 'apiuser'; $...
0
votes
1answer
22 views

All Images not calling alt text

I am having trouble with the alt text on my wordpress.com website. I am using a theme I coded myself. From what I recall, if I added alt text to an image in the Media Library it would insert into the ...
0
votes
1answer
11 views

How to extend the area from text label to div where a click will select a radio button?

I would like to allow a click anywhere inside the div to select a radio button. Currently, the mouse must be over the text label. Clicks elsewhere do not set the radio-button choice. I tried putting ...
-2
votes
3answers
28 views

Is safe to use native WordPress comments system?

Native WP comments system requires only display name and email to leave a comment. So if I know the email of a "well-known" person, I can leave a comment using his/her identity (and gravatar also). Is ...
0
votes
0answers
19 views

How to for an interactive map: pluggin or need a developer?

The idea is to create an interactive map to be embedded onto a website. The gist: Anyone can click on the map to signal something and send a photo, video or message that will appear on the map at ...
0
votes
0answers
16 views

An error appeared in the console in the priority-menu.js

Im on WordPress engine latest version. The site maxg5.ru The console appeared errors in the file priority-menu.js. Because of this error in the mobile version, menu items are displayed in the wrong ...
0
votes
2answers
13 views

How to create a page with a form programmatically in WP?

I made some research and found a way how to create custom pages using content (post) types. However, I do not want to create a new post type, I just want to create a page having a certain URL (/form) ...

15 30 50 per page