All Questions

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

How to make a drop-down list so you can press and change display like on this website by using wordpress or CSS

1How to make a drop-down list so you can press and change display like on this website by using wordpress or CSS []
0 votes
0 answers
4 views

Non-existent URLs/slugs redirect to default Posts page

I've taken over a friend's website from a shady developer. After relaunch I find that the browser lands on the default Posts page ("/blog" in this case) for any slug that isn't an active ...
David's user avatar
  • 1
0 votes
0 answers
6 views

Remove posts that start with similar words (like a delete duplicate posts plugin)

Can anyone advise on a SQL query or plugin (or any other solution, as I haven't been able to find any) that can delete all posts that start with the same words, except the oldest of them? Or maybe to ...
Johnny Bravo's user avatar
0 votes
0 answers
9 views

Put ACF function output code the_terms

I would like to put an ACF field in the of my the_terms function, is this possible? Because I can't figure out how to put it. <?php $dev = get_field ('my_field', 'option');?> <?php ...
Thica's user avatar
  • 37
1 vote
1 answer
184 views

How to disable trackbacks and pings on Images?

I got attacked by spammers that add comments/trackbacks/pings to my blog. I disabled everything, including old and new posts. But they found a way. I have no idea what it is. But it seems that every ...
jcubic's user avatar
  • 113
0 votes
1 answer
23 views

Remove `View post` Text

How to remove View post from this message ? My code is like below. public function game_updated_messages( $messages ) { $messages['game'] = $messages['post']; $messages['game'][...
Foysal's user avatar
  • 449
0 votes
0 answers
8 views

Export/Import Blog Post from and to sites with different themes?

I've got a Multisites Wordpress Instance running on my server. On there I've got a Wordpress Site which uses the Avada Theme and on that site I've got about 200+ Blogposts. Now it was decided to ...
NakedPython's user avatar
0 votes
0 answers
11 views

Are post permalinks and wp_redirect() redirections saved in browser cache?

Permanent 301 redirections are stored in client browser cache. Theoretically this means they cannot be modified after they has been set, because browser will just follow the initial, cached ...
Tahi Reu's user avatar
  • 298
0 votes
0 answers
11 views

Default Usermeta Entries for every newly created user?

we have a Buddyboss page running with 30k users. Our usermeta Table is growing fast because of a few plugins we use which all seem to write a lot of settings to it. I try to remove as many obsolete or ...
tim's user avatar
  • 164
0 votes
0 answers
16 views

Redirect to All Custom post types

I am learning plugin development. How to redirect to All Custom post types page after insert a New Custom post type ?
Foysal's user avatar
  • 449
0 votes
0 answers
8 views

I am having a problem with fetching product data in the Gutenberg block editor

const allProducts = useSelect((select) => { return select('core').getEntityRecords('postType', 'product', { per_page: -1, _embed: true, }); }, [postPerPage, orderBy, order]); console.log(...
Sifat's user avatar
  • 1
0 votes
0 answers
20 views

Options for using custom PHP in a wordpress site? No FTP access

My professional background is backend engineering, but I volunteered to help a nonprofit, and their website runs on wordpress, so I wrote some php that solves a problem for them, which I tested by ...
eipxen's user avatar
  • 101
0 votes
0 answers
15 views

How to get the post excerpt and thumbnail image url by ID

I've got a foreach loop that is looping the 3 most recent posts. I am able to get the title by ID but not the excerpt or the thumbnail image url. I've looked up the docs but and each function should ...
J W's user avatar
  • 1
0 votes
1 answer
13 views

How to use useSelect to retrieve the currently default fontFamily?

I'm trying to identify where I could find this information but I've not been able til the present moment, to achieve it. I've been looking in core/block-editor and core/editor. I've been researching ...
Iogui's user avatar
  • 111
0 votes
0 answers
19 views

How do I preload a Shortcode in Wordpress

I have a shortcode [ws_form id="1"]. This shortcode is to display a fillable form on my website. This form is present on most of my webpages and I would like to preload it. How do I do that? ...
Meghana99's user avatar
2 votes
0 answers
15 views

How to Use Webpack with WordPress Script Modules and Enqueue a Custom Class

I am working on a WordPress project using version 6.5, which introduced support for JavaScript modules. I have a parent theme that exports a JavaScript class, and I want to import this class in a ...
Nani samireddy's user avatar
0 votes
0 answers
18 views

WordPress Paywall Plugin with certain variables [closed]

First off, please excuse my lack of the english language. Hopefully I still get my message delivered. Anyhow.. We'd like to integrate a Paywall in our blog. Some time ago we were selling excel-sheets, ...
TJ96's user avatar
  • 1
0 votes
0 answers
11 views

Multiple search forms and respective results page templates?

I have a Woocommerce site and I would like to set up two different search forms, one for products and one for everything else (pages, posts, and a couple CPTs) that would render on it's own respective ...
Ryan M Vickerman's user avatar
0 votes
0 answers
18 views

Get User By Email - Not Working with Variables (PHP)

I'm trying to return user data based on an email input, code is simply: $email = '[email protected]'; $user = get_user_by( 'email', $email ); This returns nothing and when I try filter_var($email, ...
Morts81's user avatar
  • 123
1 vote
0 answers
8 views

Extend WordPress Gutenberg core/navigation-link

Hey folks So Im pretty new to this react + php in wordpress and I found one article where it showed how to extend a core block, which works fine for group and some basic block but When i tried to ...
DevopsRedefined's user avatar
-1 votes
1 answer
12 views

Uploading media from non-local host computer

I am working on a Wordpress site that is locally hosted on another computer. I have admin privileges so I should be able to make the changes I need, but I am having trouble uploading new media. I keep ...
Annabelle's user avatar
1 vote
1 answer
11 views

WooCommerce: Custom dropdown for variation selection

In WooCommerce, I have an attribute called License Type. This attribute has 2 terms: Single Site License Multi Site License With the above, I'm trying to create a custom select dropdown, where the ...
Freddy's user avatar
  • 157
0 votes
0 answers
9 views

Wordpress Paypal Error "Authentication with PayPal failed: Could not create token."

I'm using woocoomerce plugin "WooCommerce PayPal Payments" when I try to use my live credentials as well as sandbox credentials I always get the error Authentication with PayPal failed: ...
Aurang Zeb's user avatar
0 votes
0 answers
13 views

My Website Having Duplicate Category Titles On 1,2,3 pages

I am having issues with duplicate titles on my category pages. I am using the PH Creative Pro Theme and yoast plugin. you can see the diffences by checking these 2 urls : https://gamerflare.com/...
Rajneesh Tripathi's user avatar
0 votes
0 answers
30 views

Are there any legitimate reasons for a web browser to directly access wp-includes/*.php?

This question would appear similar to Deny php execution in /wp-includes - using .htaccess in /wp-includes VS root folder - but is different in that that question asserts the questioner has already ...
davidgo's user avatar
  • 222
1 vote
1 answer
27 views

Why would I get a "Trying to access array offset on value of type bool" warning when using "metadata_exists()" in save_post?

When saving a post that is a custom post type (in the example, 'my_cpt'), I'm trying to check if a specific piece of metadata exists for that post. I'm using this exact same code on another site (...
Scott H's user avatar
  • 31
0 votes
0 answers
10 views

How can I get Intellisense working in Visual Studio Code while editing remote PHP plugin code on a Wordpress site via FTP?

I initially used WAMP to develop a custom plugin for Wordpress. Now that I've moved it to a hosted server, I use a VS Code FTP plugin to tweak the PHP code remotely. But now VS Code reports errors for ...
Timbo's user avatar
  • 101
0 votes
1 answer
17 views

Could WP ERP be the right software for a dropshipping business? [closed]

I am planning to resell wine through WooCommerce and will be handling most sales via cold calls, requiring manual order entry into the CRM. I need a solution that integrates WooCommerce, a fulfillment ...
Andres russo's user avatar
0 votes
1 answer
15 views

How do I modify the font-size-base used on editor-styles-wrapper on the back end?

I modified a theme so that the text on the front end is where I want it. The back end text in the editor is appearing smaller than the front end. I was able to find a setting under the .editor-styles-...
David Borrink's user avatar
1 vote
0 answers
9 views

Custom signup redirection to external URL not working

I am using User Registration plugin to register my users. I have created a widget to show a modal with Signup and Login form. I have one more API where the user gets created from this same form. So I ...
nazmul shuvo's user avatar
0 votes
0 answers
26 views

$wpdb->get_results() query empty, but same query in phpmyadmin has results

I'm running the following query to get attachment data for a long list of post ids: SELECT post_id, post_title, meta_key, meta_value FROM wp_postmeta JOIN wp_posts ON wp_postmeta.post_id = wp_posts.ID ...
Matt Dietsche's user avatar
0 votes
0 answers
16 views

Remove date rewrite rule for custom post type archive page

I'm building a website with an archive page where I can filter posts by date (year and month) and by term. I'm using wordpress url params to display filtered posts. The filtered url looks like that : ...
Pof's user avatar
  • 111
1 vote
1 answer
44 views

No aspect ratio selector in a custom block

I added the aspectRatio prop to the block.json file in a custom block that renders a grid of posts of a specific type: { "$schema": "https://schemas.wp.org/trunk/block.json", ...
leemon's user avatar
  • 1,920
0 votes
0 answers
12 views

_sold_individually value change when add to cart

I have wordpress setup with woocommerce. Now I have set the option Sold individually to yes check the screenshot But when I click on the add to cart button of that product and check the value again ...
urfusion's user avatar
0 votes
0 answers
14 views

Same Custom Post Type Slug and Custom Taxonomy Slug, with hierarchial unique permalink structure

I am new to wordpress custom post type and re-writing urls'. I have created a Custom Post Type with slug 'industry' further re-writen to 'industries' and Custom Taxonomy associated to it with same ...
divy3993's user avatar
  • 103
0 votes
0 answers
18 views

How can I duplicate elements between pages in Colibri? [closed]

I'm building a website using Colibri and Wordpress. I've created a homepage, but I'd like to copy my navigation bar as well as some other elements from that page to the other ones I'm making. Is there ...
Snorka's user avatar
  • 1
0 votes
0 answers
24 views

What are System fonts and where are they used?

With the system colors I can kind of envision why they are there type used by Primary Default background color of a page Secondary a slightly different shade for header/footer/aside Text Default ...
th00ht's user avatar
  • 155
1 vote
0 answers
21 views

wp_insert_term is extremely slow

we are using wp_insert_term to add product categories. The problem is, that this command is extremely slow. Does anybody has had a similar experience and found a solution for this? wp_update_term is ...
Holger Selig's user avatar
1 vote
1 answer
30 views

Add custom data attribute to every core Gutenberg Blocks

I'm adding two custom attributes to core Gutenberg blocks, data-delay and data-duration. I want to add these attributes to manage animations blocks on my custom theme. I wrote this JS code into block-...
Stefano's user avatar
  • 33
-1 votes
0 answers
24 views

How To Convert a Downloaded Site Into a Theme

I have downloaded a website (appinventiv) using the HTTRACK tool, and once the downloading has completed I was trying to convert it into a WordPress theme, all the images are displaying well but css ...
Ridhi Garg's user avatar
0 votes
0 answers
18 views

How to use two plugins which works on menu

I am suing two plugins, "Ultimate member", and "Max Mega menu" they both access the menu components, I want to configure them in the Appearance > Menu section but I am only able ...
Abheer Mehrotra's user avatar
2 votes
1 answer
27 views

Can't assign menu parent id or menu item breaks

I try to create a menu item for every new product category created, but it just creates an empty custom menu item (in the right place). If I however don't assign a menu-item-parent-id it works fine (...
WMMedia's user avatar
  • 51
1 vote
1 answer
37 views

How to add translation for FSE theme?

How to fulfill this requirement for FSE theme "All theme text strings are to be translatable." ? I am using esc_html_x() to translate string in my patterns Example <?php esc_html_x('...
Stephen Paul Samynathan's user avatar
0 votes
0 answers
19 views

WordPress Redierction

I would appreciate it if you could help me to sort out the below issue. I have created a blog using Custom Post-Type in WP. now all my blog links are showing as follows. how can I remove redirection ...
Charith Jayasinghe's user avatar
1 vote
1 answer
12 views

Adding new Template Parts in the Block Editor when using Classic Themes

I am looking for a way for users (who will be site admins) to design Blocks that will be used by a plugin I am developing. I want the solution to work in both Classic and Block themes, so I have been ...
zcesl53's user avatar
  • 33
0 votes
0 answers
21 views

Schedule Future Downgrade for Easy Digital Downloads Subscription Plan [closed]

I am working on implementing a subscription downgrade feature in Easy Digital Downloads (EDD) that allows users to schedule a downgrade for a future date. Currently, when a user downgrades their plan, ...
Steve Goodman's user avatar
1 vote
1 answer
39 views

How to create a three column blog layout with a single query and with three different classes?

I am trying to achieve the following layout : I have created a shortcode for this but I am not getting the desired result. Can anyone guide me where I am getting it wrong. Here is full shortcode. ...
kalyan's user avatar
  • 163
4 votes
1 answer
87 views

Getting fatal error when using manage_media_columns filter of WordPress

When I am using manage_media_columns filter of the WordPress I am getting the fatal error. This is the code I have added in my functions.php file. add_filter('manage_media_columns' , 'book_cpt_columns'...
Ashok Kumar's user avatar
0 votes
0 answers
9 views

Access-Control-Allow-Origin

I have some problem in my mobile header, the german version. I tryed both <FilesMatch "\.(ttf|otf|eot|woff|woff2)$"> <IfModule mod_headers.c> SetEnvIf Origin "http(s)?://...
Andrea Sacconi's user avatar
0 votes
0 answers
26 views

Blog Posts Work in Preview, But Are Not Visible on the Live Page - READ MORE u003cspan aria-hidden=’true’u003e→u003c/spanu003e Error

Returning to a WordPress site that I have been away from for a while, I discovered that my Posts show up fine in Preview, but the actual page displays "READ MORE u003cspan aria-hidden=’true’u003e→...
UrsusArctos's user avatar

15 30 50 per page
1
2 3 4 5
2326