you are adding the name of product in a’s tag of href
<a class="modal-link" href="https://wordpress.stackexchange.com/product/" . $wslug . '"/>View</a>
you need to add products html link in this like below
<a class="modal-link" href="https://wordpress.stackexchange.com/questions/312841/example.html"/>View</a>
i hope it work.
lightbox link ex:
<a href="http://www.yoursite.com/yourpage.htm" class="html5lightbox" data-width="960" data-height="600">Link to Page</a>
Related Posts:
- Woocommerce attatch files and custom input meta to cart items and then to order
- Pass PHP variable to javascript
- Handling jQuery Component Collision
- WP WC CLI – WooCommerce setup store with wp-cli [closed]
- Is dynamic forms/entries possible in Widget?
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Editor not displaying dynamically after clicking on the button
- How to fetch serialized data from wordpress options
- How does WooCommerce display a custom comment_type in Comment Admin?
- Why is my ajax call refreshing the page?
- How do I use WordPress PHP functions in my Javascript code?
- Admin-ajax.php is dying “0” without processing function
- Custom Shipping method not showing in checkout
- Get image URL from media library in input
- How to prevent action in ajax request, when in admin side?
- How to create popup same as wordpress popup feature
- Only execute jQuery function(on document ready) on the page has shortcode from plugin [duplicate]
- Create or Update thousands of woocommerce products via PHP
- jQuery function didn’t work in my plugin
- Handling jQuery Component Collision
- Is it possible to set up multistore in Woocommerce? [closed]
- How to remove the woocommerce_checkout_process action hook in woocommerce if particular project in cart [closed]
- Check if email address exists front end with AJAX in a plugin
- Save user total active time after login in wordpress [closed]
- Add a “View all” button on WooCommerce product archives pages
- add seperate suffix for low price and high price in woocommerce
- Cross Sells are not being shown in Cart Page. Please Help!
- Error with get_price (and others) in self-written plugin to show price
- Search users with custom meta data
- How do I make sure that my plugin only runs on article detail pages?
- WordPress custom plugin that uses woocommerce enabled payment gateway for payment [closed]
- Disable variations on woo commerce if out of stock
- How to add category and subcategory in WordPress custom code?
- jQuery code didn’t run on my plugin
- The Events Calendar Plugin – List View Background Colour Issue [closed]
- Ajax request sends url rather than data
- Adding a jQuery modal dialog to the admin area
- Pass PHP variable to javascript
- WooCommerce – I want to add functionality of one plugin to another plugin — best approach?
- How to Get Category Name When Export Products
- Cannot read properties of undefined (reading ‘firstChild’) using photoswipe in product page
- wp_query ‘s’ parameter does not work with WC_AJAX
- Grouping imported products and showing variations based on selected product
- wc_get_template_part doesnt display the content [duplicate]
- Remove Zero Money From Previews Order woocommerce
- Visual composer custom element error
- How would I Redirect an existing WooCommerce customer to a specific url after Checkout
- How can i solve php upgrade problem
- Make downloadable ebook read online without download option
- woocommerce: Customize email with item total count
- How to properly enqueue jQuery knob on WordPress without conflict?
- show wc_add notices on particular page in woo commerce custom plugin development
- How to get the checkout form data from checkout page when place-order button is clicked
- Woocommerce convert simple products to variations
- update_post_meta is not working for me when I use e.preventDefault for update button
- How to make WooCommerce multiple filter with custom meta fields
- Overwrite js code using WP_Footer
- wc_get_product_terms() throws “Notice: Undefined offset: 0”
- Woocommerce list variations that are added already to cart in Single Product
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Overwriting Plugin’s Ajax callback function from theme
- Hide ‘add to cart’ button for some products [duplicate]
- Change pricing in Woocommerce based on Category and Product [closed]
- Adding/ Removing actions for plugins
- Storing Array of values into wordpress options
- Problem with conditional woocommerce custom checkout field
- Unable to sync woocommerce variations
- Can’t find variable is_single in my jQuery plugin
- Javascript in plugin not working
- Not getting result using ajax on wordpress
- woocommerce blank page after clicking add to cart [closed]
- How to Add Jquery FullCalendar in wp plugin in admin
- WordPress ajax not working in registration
- How to add jquery to my custom post type wp plugin
- Ajax, jQuery and WordPress
- How to get site homepage from plugin?
- get_option include in my adsense
- Ajax in Plugins: returns the whole page
- Unable to show 4 products in a row
- Load css classes after using ajax calls
- The plugin generated xxx characters of unexpected output during activation
- Modifying lightbox plugin to allow for quoting, Does this exist? [closed]
- Integrating WordPress Content into a jQuery Slider
- Hook for single product thumbnail
- Jquery post responses 500 error after some time and lastly an 503 error
- Predefine Product Variations for specific custom product type [closed]
- Create Custom Coupon Type
- How to create a “plugin” or “block” that can manipulate WordPress DOM in frontend?
- Template selector for woocommerce product
- Can we install 3d product configurator into wordpress
- How to use `$order->get_discount_total()`, avoiding defoult WC decimal rounding?
- A multi-section WordPress store [closed]
- Unable to Edit or Add Photo Gallery Under Portfolio in WordPress 6.2.5
- Need to add custom cart item data
- Redirrect after facebook successful login to wooommerce cart page url
- WooCommerce Checkout – Validate User Role
- Custom Search Function in WordPress Returns No Results
- Ajax response from Media Selection does not update ALL information more than once
- implement pop up in wordpress cdn’s in wordpress admin side
- how to add custome text in each products side in checkout page after pincode validation [closed]