Unanswered Questions
3,207 questions with no upvoted or accepted answers
0
votes
0
answers
13
views
How do I ensure that the URL parameters are updated correctly when multiple filters are applied
I am writing a product filter, and ran into this issue.
I have 2 different attributes of my product filter:
Tilt -- as a checkbox with "Yes" or "No", and Multibrand Compatible -- ...
0
votes
0
answers
35
views
add_image_size() parameter four ($crop = true) is ignored: the_post_thumbnail() returns scaled image(s) instead of hard cropped
Good Day!
I am trying to achieve hard cropping of thumbnails in a custom WordPress theme. In functions.php I have added add_image_size('blog-large', 860, 484, true);. Thus, the fourth parameter ($crop=...
0
votes
0
answers
16
views
button for resetting all the custom meta fields
I’d like to have a button to reset all the custom fields for the prices, the button should operate from the author (agency) edit page because I’d like to clean the prices of all the apartments (posts) ...
0
votes
0
answers
13
views
Post Navigation Elementor
I'm using Elementor and ACF on a website and have a custom post type for events. In elementor I have the posts on the archive page set to order by the ACF start date field. When the user clicks the ...
0
votes
0
answers
18
views
Add a React search box to blog home error - Cannot read properties of undefined (reading 'jsx')
I have followed a couple of tutorials online in the pursuit of adding a react component to my WP page.
I have gone over and over it for errors and I cant see what I must be missing, as the console ...
0
votes
1
answer
23
views
Filtering with Attributes - how to display all non-queried products below query
I addded attributes to filter out products, based on their selection. For instance, I have field named 'tiled' as yes or no. If person ticks 'yes', all the products with the attribute of 'yes' are ...
0
votes
1
answer
9
views
Can you open a media frame to sellect an attachment to associate with another attachment you are editing on an existing media frame?
I want to have a media frame that pops up on click of a button on an existing media frame.
This way I can associate another attachment with that attachment.
This question shows an example of you can ...
0
votes
0
answers
11
views
Trying to change the default page break numbering format
You provided an answer on the below post, I wanted to ask if this should work on Wordpress posts or pages, Im trying to do something similar for posts but I added your code to functions.php and it ...
3
votes
3
answers
117
views
Is it possible to automatically set the publication time to 8am on new posts?
This might be kind of funky to pull off, but does anyone have any ideas on how I could automatically set the time to 8am on any newly created post drafts? In both the Classic Editor and the Block ...
0
votes
1
answer
35
views
How to allow shortcodes in image descriptions?
I understand how to add a filter to enable shortcodes for something:
add_filter( 'img_description', 'do_shortcode' );
But, what's the actual hook to target image descriptions? img_description doesn't ...
0
votes
1
answer
25
views
Function extension
I have the following code:
function auto_link_post_titles( $content, $post_id, $field ) {
$excluded_ids = array(); // Put the IDs of the pages you want to exclude here
$excluded_field_names = ...
0
votes
0
answers
49
views
Enable logical for function
I have the following code:
function auto_link_post_titles( $content, $post_id, $field ) {
$excluded_ids = array(); // Put the IDs of the pages you want to exclude here
$excluded_field_names = ...
0
votes
1
answer
24
views
How to get selected category objects in the block editor?
I am using the following functions to get the selected category objects. It seems to always return no matches even though there are several. What am I missing here?
(function (wp) {
const { ...
0
votes
0
answers
27
views
Custom PHP contact form issue
I'm building a WP website with a custom contact form in PHP, HTML and Javascript.
The issue is when the user click the submit button to send the form, it redirects to a 404 page.
The PHP function:
...
0
votes
0
answers
33
views
Removing website URL in comments causes misalignment of submit button and tickbox
I am using Astra free theme, I have created a child theme with functions.php, comments.php, style.css. I have managed to remove the Wesbite URL entry using the following code in functions.php:
...