I'm currently working on a WordPress plugin code that hyperlinks all instances of a keyword in a blogpost. below is the full code. the issue is that it hyperlinks all keywords in the blogpost including all keywords instances in the paragraphs and in the headings. This is not the behavior that I want. I only […]
Closed. This question is not about programming or software development. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a […]
This question already has answers here: Changes on archive-product.php doesn't work (7 answers) Woocommerce archive-product.php overwrite not working with underscores.me theme (1 answer) Overriding template via the theme does not work in Woocommerce (1 answer) Override Woocommerce Elements (3 answers) Closed 19 hours ago. I'm having some template hierarchy issues trying to add woocommerce to […]
On the website if I click on a icon box with a link it sends me to a url that ends with /undefined. It's always the "correct" url but with the added /undefined at the end. It only happens when the page is actively showing its loading. /undefined links show the 404 page. For example […]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 16 […]
I am trying to rewrite a classic WP theme as a block theme. In my current classic theme, where I display a list of posts, I use php logic to display or hide certain elements. E.g.: If a post includes a video, I overlay a video icon over the featured image in the list. In […]
I'm trying to dynamically pre-fill the product description and short description in WooCommerce based on a custom ACF (Advanced Custom Fields) select field. The field allows the user to choose between two options: "Truck" and "Construction Machine." Depending on the selection, I want to populate the product descriptions with specific content. ACF Field Setup I […]
Body: I'm using Elementor and I have a loop carousel element with multiple slides. I want to dynamically change the body background image to match the image of the central slide (the one currently in focus). The carousel is created with Elementor's loop carousel widget. This is the page: https://riccardocurin.com/new-homepage-02/ I tried using jQuery to […]
In the <div class="B"> section, if I write: <?php for ($i = 1; $ i <= 1; $i++) : ?> it works, however this: <?php for ($i = 1; $i <= 7; $i++) : ?> does not work like a photo. Somebody knows why this happens? My PHP code: <?php /** * Template Name: xxxxxx […]
I have added a custom meta field to users called "customer_code". This all works and stores the information just fine. I have added the "Customer Code" column to the users admin page like so: add_filter('manage_users_columns', 'db_add_customer_code_column'); function db_add_customer_code_column($columns) { $columns = array_merge(array('customer_code' => 'Customer Code'), $columns); return $columns; } Again, this works just fine and […]