Skip to main content

Questions tagged [wordpress]

WordPress is a free and open source blogging tool and a content-management system (CMS) based on PHP and MySQL.

3 votes
1 answer
54 views

Wordpress custom registration form with additional fields

I work on plugin for custom auth pages for WordPress and I try to create a custom registration form with additional fields. it has a shortcode in Beaver Builder. Is this the correct approach, and ...
Pavel Drow's user avatar
0 votes
0 answers
35 views

is it better to import data from json file instead of api calls in React Js?

I used different way to load data from wordpress-rest-api for frontend-reactjs as following : built simple services by node js to communicate with wp rest api and save response into json file in ...
FZDEV's user avatar
  • 9
2 votes
0 answers
114 views

Add a Custom Billing Field to WooCommerce Checkout, Order Meta, and User Meta

I have implemented a custom WooCommerce checkout field to collect a Tax Exempt Number in the billing section. This field's value is stored in the user meta upon checkout to facilitate future orders. ...
intothevoid0's user avatar
1 vote
2 answers
198 views

PHP WordPress Code - Pricelist Template

I've been working on a WordPress pricing page template and would appreciate feedback on the code structure, organization, and any potential improvements. The template is used to display a pricing list ...
KermitTheFrog's user avatar
0 votes
1 answer
293 views

WordPress Plugin for WebP/AVIF Image Conversion

I'm looking for feedback on a WordPress plugin I developed for automatically converting images to WebP and AVIF formats. The goal is to optimize image loading performance. The plugin has the following ...
KermitTheFrog's user avatar
2 votes
1 answer
249 views

Display WordPress Custom Post Types with ACF-Fields on a Google map

I am currently working on my first WordPress plugin. I display custom post types on a google map with pins. The custom post types also have additional information by ACF fields which are displayed in ...
Markus's user avatar
  • 21
0 votes
2 answers
596 views

Configuring SQLite3 for best efficiency as a persistent cache

I'm using SQLite3, via php's extension module, to create a persistent object cache for WordPress. It's intended for use on modestly sized sites that don't have access to redis or memcached. Why use ...
O. Jones's user avatar
  • 319
1 vote
2 answers
100 views

PHP function that checks if user should have access based on button click and yearly quarter

I have a function that has a few and/or operators in it. I'm sure there is a better way to write this but can't seem to figure it out. I thought I could use arrays but ran into an issue with having ...
protagonist's user avatar
1 vote
1 answer
275 views

Default to array when value is null or false

I'm working with ACF in WP which provides a get_field() function. The function can return an array of values, null or false. ...
mrmadhat's user avatar
  • 158
0 votes
2 answers
120 views

Search between dates in a WP Query

In the posts I have a date field and a start and end date range. I need to query if it matches date or if it matches between the dates in the range. This Query works, but how can I optimize? ...
cRiSs rOcCa's user avatar
4 votes
2 answers
186 views

Modify a WordPress loop to show posts of certain categories, based on user roles

I've got some code that works as intended, but I have a feeling that it's messy. This code is modifying a wordpress loop and the goal is to check the roles of the current user and show posts of ...
JLW's user avatar
  • 43
2 votes
2 answers
199 views

Optimize PHP code for Wordpress shortcode (Star-Rating)

I am using WP with the Avada theme and the built in Star Rating element as well as ACF Pro. Unfortunately I found out that the Star-Rating element adds a rating scheme to the footer of the website ...
Torsten's user avatar
  • 21
3 votes
2 answers
118 views

Custom Block with ACF in WordPress

I'm learning and want to improve as much as possible. In doing so I have written this custom block that has an image on one side and an inner block on the other. It's using ACF to get the variables ...
Andrew Fair's user avatar
1 vote
1 answer
54 views

Instantiating classes in WordPress plugin

the last couple of weeks i have been working on my own WordPress plugin. I am trying to do a class based codebase. My plugin works correctly, but i don't really know if this is the correct way to ...
RowanBlub's user avatar
2 votes
0 answers
34 views

Added custom woocommerce product page hook

I inserted this code snippet in the functions.php of my child theme, to create the woocommerce single product page in the hook woocommerce_after_single_variation of the custom icons in line centered ...
db151's user avatar
  • 21

15 30 50 per page
1
2 3 4 5
10