All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
34 views

MySQL Query Returns Array () In Shortcode

This is in my theme's functions.php. I have an external MySQL database that I'm connecting to in WordPress with the following code, and I'm attempting to create a shortcode that shows the total of a ...
user avatar
0 votes
1 answer
22 views

Does wordpress support natively the concept of logging-in users? (not admins, but users of the website)

I need to create a small members area, probably for about 1000 users, not more. I want to set private information there, forms, interaction, etc. More in particular it'll be for "providers" ...
user avatar
0 votes
0 answers
49 views

How to display the post categories for each post inside the loop with custom format?

I'm trying to create a shortcode to display the post categories with custom format (ex.: I need to display emoji acf field before each category). I'm using version 6.0 of WordPress and the Full Site ...
user avatar
0 votes
0 answers
10 views

Contact form 7 and custom fields [closed]

I'm using the plugin "Contact Form 7 Dynamic Text Extension" to add the values of some Advanced Custom Fields in an email send from Contact Form 7. I’m using this shortcode, which I found in ...
user avatar
0 votes
0 answers
15 views

How to remove borders marked in orange? i.e., increase size of 'pages' to fill the screen [closed]

How do I get rid of the 'borders' marked in orange?
user avatar
0 votes
1 answer
36 views

How to insert and call new data in wordpress website database through a plugin

I have a dropbox button that user interact with it to get some data like video's id and video's name using Js code. What I want to do is insert these data in the database using pair data structure and ...
user avatar
  • 5
0 votes
1 answer
12 views

WordPress Nav Walker - Top menu link with dropdown link not clickable (dropdown opens)

I'm trying to setup a WP NAV WALKER with dropdowns. The links work fine, the dropdowns work fine, however the parents of dropdowns should also have links, but they don't trigger, instead, they just ...
user avatar
0 votes
0 answers
16 views

Publish box in CPT remove 'edit' link

Hello I have a custom post and in the Publish Box I would like to remove the timestamp edit link.
user avatar
0 votes
1 answer
19 views

Seperate plugin and theme files

I am in desperate need of help, regarding the following issue: I need to establish an API Connection to Salesforce, so that a user can search and retrieve certain data out of Salesforce. I thought, ...
user avatar
0 votes
0 answers
17 views

Problem with Web-Alias and WooCommerce

I have a site with a WooCommerce shop that works just great. I have another domain for which I have setup a Web-Alias pointing to that shop. It also works great until I put something in the cart. Then ...
user avatar
  • 156
0 votes
0 answers
9 views

Display Sibling WooCommerce Product Categories on Archive Page

To the lovely people of StackExchange, I've created the following code to list WooCommerce categories on category archive pages, and it's mostly working as I'd like. However, I'd like to modify it so ...
user avatar
0 votes
0 answers
8 views

Custom Search Form For Table [closed]

I have table linked to external plugin , I need to create search form for this table to get data . It is not search form for custom post type as I know the solution for it, Do anyone has an idea? The ...
user avatar
0 votes
0 answers
7 views

Display a certain amount of money in client profile [closed]

We have launched an e-learning platform using Learn dash LMS and would like to display a certain amount of money in WordPress admin dashboard so that the client can see the money he has paid and ...
user avatar
  • 1
0 votes
0 answers
7 views

Woocommerce dynamically change price of a variable product once a specific variation is changes [closed]

I have written this to extract the product variation prices global $product; if ( $product->is_type('variable') ) { function get_product_variation_price($variation_id) { ...
user avatar
0 votes
0 answers
15 views

Wordpress Phone Field Check (use numbers, spaces and pluses)

I'm a newbie in PHP, I use this PHP code that works like a charm. It's a custom form that sends to Woocommerce different fields. I want to add a "preg_match" check for each of those fields ...
user avatar
  • 1
0 votes
0 answers
15 views

Gutenberg: How to make a section with a fixed size icon (image) on the left?

I would like to have a section on a website, that has an icon to the left. I tried the Row layout, which looks 100% right in the editor, but on a real website the layout breaks like this. Editor: the ...
user avatar
0 votes
1 answer
24 views

Disable autosave with `function.php` for custom post wordpress?

I need disable auto save with function.php in wordpress. What should I do? Thanks
user avatar
0 votes
0 answers
10 views

regular expression to get all urls in a string except one url [closed]

I have an array of urls urls = [ 'example.co.uk/nz', 'example.com/us', 'exclude.example.co.uk' ]; now I wanted to do some manipulations with the above 2 urls and want to skip the third. here is my ...
user avatar
0 votes
0 answers
26 views

Cannot output plugin twice with shortcode

With my first plugin, I had some issues that got solved with the help of users here. Now I am facing another issue: I want to be able to output the plugin content (drop-down select form) twice on the ...
user avatar
  • 113
0 votes
1 answer
44 views

What snippet do I need to type to show my ACF field show up on my theme?

I've been trying all kinds of things but I can't get it to work cuz my Theme single.php looks different that usual. I made a field in ACF named Region and then enter for example USA which I need to ...
user avatar
0 votes
2 answers
18 views

Have mu-plugin remove meta box ONLY if it isn't already removed in functions.php

I have a mu-plugin that removes a branded "Welcome to X" dashboard meta box placed there by the hosting company I work for. It works fine mostly. However, some of our agency clients are ...
user avatar
  • 1
0 votes
1 answer
22 views

WP HTML Templates - Any way to get bloginfo() or the path to the theme folder?

So in our new architecture for themes, we want to use Gutenberg themes with html templates. Problem is, when we need to call anything from the theme folder, we have to use the full URL. So if the ...
user avatar
  • 788
0 votes
1 answer
10 views

Using menus to link to sections on the home page

I have many menu items linking to sections (anchors) on pages. They are working fine on every page except the home page. ON the home page, the first time you click on a menu item it works, but the 2nd ...
user avatar
0 votes
0 answers
11 views

Trying to determine the name of this video effect to find code for my website [closed]

I'm working on an interactive page that includes scroll-based sticky videos and I found a neat video effect that pulls the viewport towards an embedded video and then enlarges it to be full-screen. ...
user avatar
0 votes
0 answers
26 views

How can I return only IDs from the `posts` REST endpoint?

I have the following code: const FORMS = document.querySelectorAll(".search-form"); FORMS.forEach((form) => { const INPUT = form.querySelector(".search-form__input"); ...
user avatar
  • 1,101
0 votes
0 answers
15 views

Prevent Wordpress from setting src on image added in Customiser

I'm trying to apply custom data-src and srcset attributes to images added in Customiser. The page is static with no loop and I have so far hard coded the data-src attribute with <?php echo ...
user avatar
0 votes
0 answers
7 views

WooCommerce Deposits - Remove of details from the email [closed]

I would like to remove the plate with partial payments from the e-mails to the client, but I don't know how :( Please help.
user avatar
0 votes
0 answers
21 views

Insert Custom Field Value

I want to insert custom post type with it's custom fields values I have found this method to insert custom post type but with no custom fields wp_insert_post( array $postarr, bool $wp_error = false, ...
user avatar
0 votes
0 answers
9 views

Header block issue [closed]

I have run into the following problem. I have created a new page and placed a block as header. This block is now fixed on every page and I do not know how to remove it. As other pages which were prior ...
user avatar
0 votes
0 answers
12 views

First Image not loading on Mobile Version of Website

I'm helping a friend with their website and I have came across a weird error. When the website is loaded on a mobile phone, the first image displayed does not show up. If you clink on the blank area, ...
user avatar
0 votes
0 answers
15 views

How to remove slug from front page?

I recently got the role of admin for my organization's website. Site is using WordPress 6.0, with plain permalink settings. I decided to change to pretty permalink. After changing to them, the ...
user avatar
  • 1
0 votes
1 answer
20 views

custom post type, hide or disable the status line in publish meta box

I have been adding a post type to my theme, how do I hide/disable the status line (All of it) as in image
user avatar
1 vote
0 answers
24 views

htaccess if requested url is /wp-admin [migrated]

I need some help with my .htaccess. I want this lines only execute if the url is not /wp-admin. Header add Content-Security-Policy "default-src 'self';" Header add Content-Security-Policy &...
user avatar
0 votes
1 answer
14 views

Hide Published text from custom post types column

Is it possible to hide the 'Published' word only on custom post types column? as in image and just leave the date and time?
user avatar
-1 votes
0 answers
15 views

How do I redirect visitors to ads with the plugin? [closed]

i have a blog site with long texts. and i want visitors to necessarily watch an ad (like youtube) or click on google ads before reading the content. is it possible or is there a plugin that can do ...
user avatar
0 votes
0 answers
12 views

Type Viewer in Graphql returns null and I can't login a user [closed]

I'm having a problem with Wordpress and Gatsby... I'm using Apollo client trying to login a user, but Wordpress GraphQL returns null for viewer. I sure that is the reason I can't login any users.. but ...
user avatar
0 votes
0 answers
20 views

Allow / show post comments in category pages

Is there any way to allow the users of a website to write comments (and also see the already published comments) on one post when it's displayed in a category page? I'm not looking to let the category ...
user avatar
  • 1
0 votes
0 answers
14 views

Offer Download Links for Product Images

For a B2B shop, I would like to give customers the possibility to easily download product images. To do this, I would like to display links for the product-specific images directly on the product ...
user avatar
-1 votes
0 answers
12 views

Change Menu Font size [closed]

Please help me in changing the font size of the menu https://panchabhoota.com/
user avatar
  • 1
-1 votes
0 answers
14 views

Blog is sending rapidly [closed]

We are getting alot of complains and hope you can help us identify the problem here. This is our blog site : https://www.dmmsfrontiermissions.com/ which continuously sending blogs to our customers. ...
user avatar
0 votes
1 answer
41 views

delete_user_meta from a foreach results page

I have a real estate site. On property pages users can save homes as a favorite. The property gets added to the user meta data. I can successfully add and delete entries from the single property ...
user avatar
  • 3
1 vote
0 answers
16 views

Modifying request $_COOKIE

I have setup some conditional logic within a WP theme to display certain sections based a cookie value. I am trying now add some logic to override that cookie value in the request itself, based on a ...
user avatar
0 votes
0 answers
18 views

how to let users upload their custom cover image

I have a dashboard for users (one page using elementor and buddyboss to change stuff like name profile pic etc). I want users to be able to upload a custom cover image. I found some code that almost ...
user avatar
0 votes
0 answers
10 views

phpmailer reply to message id using AddCustomHeader

trying to reply a message by using phpmailer class ,i added custom header $mail->AddCustomHeader('References',$messageid); $mail->AddCustomHeader('In-Reply-To',$messageid); message send with ...
user avatar
0 votes
0 answers
16 views

Move custom sidebar out of <main> in Twenty Twenty-One child theme

In the child theme, I registered a widget area for a sidebar that I only want to show on single posts. In my single.php, in between the endwhile; and get_footer();, I added: echo '<aside id="...
user avatar
0 votes
0 answers
11 views

Single Parent post having children's posts

I wanna create Custom Post which can have unlimited child posts. But problem is when I am on child post and I want to let child post know that there is another next child post of same parent. Here is ...
user avatar
0 votes
1 answer
19 views

Hide Status Option From WordPress Publish Metabox and Rename Published on:

I want to hide Status option on publishbox and rename Published on to Date Created for Custom post post_type like you see in red on the below picture.
user avatar
2 votes
1 answer
31 views

Convert GMT time to local time in Gutenberg Block Editor

I'm wondering if I can use any of the functions listed in the @wordpress/date package to convert a GMT date to a date in the user's locale. For example, this GMT datetime 2023-06-20 17:46:00 would be ...
user avatar
  • 23
0 votes
1 answer
23 views

WordPress Plugin- How to Insert Html&JS code in specific Page and specific Div

I have some Html& js code relating to this dropbox button by WordPress plugin 1- I want to insert the button in a specifc page for example I have sample page and Sec Page I want to specifiy the ...
user avatar
  • 5
0 votes
0 answers
23 views

How to save HTML data into SQL post_content column

I have a custom template file containing some HTML tags and get_post_meta function. I want to insert the HTML data into post_content column. Is there a wordpress function or SQL function to save into ...
user avatar

15 30 50 per page