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:
- 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 does WooCommerce display a custom comment_type in Comment Admin?
- Why is my ajax call refreshing the page?
- 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
- HTML in WooCommerce settings
- Woocommerce plugin for minimum order and add-to-card-step
- Best approach to fetch data from wp options to js file or php file
- How to stop activating a plugin and show admin notice when dependent plugins minimum version is not met
- Ajax contact form widget plugin data not insert in database
- woocommerce payment gateway callback not firing [closed]
- Fetch Children of Grouped Products Inside WooCommerce Product Loop
- How to check current user before all actions and filters?
- Modifying a .js Function for Print [QZ Tray, WooCommerce POS]
- custom payment gateway in woocommerce failed to connect to remote api server
- Creating a Callback URL for WordPress Woocommerce to update Order Status
- how to do login using woocommerce rest api From android
- Create shortcode to echo javascript
- How can I insert thousands of Woocommerce products by batch with PHP? [closed]
- Redirect to another page using contact form 7? [closed]
- How to add an element right after the article using jQuery?
- How to add a dvi tag to a shortcode then change a generated text using jQuery
- WooCommerce – set session with new cart item meta when updating cart item quantity [closed]
- Add_rewrite_endpoint doesn’t work with post name permalink structure
- 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!
- 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
- 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
- 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
- How to create a plugin with automatic update?
- Getting all woocommerce products from REST API call in plugin
- Checkbox field that add a subscription product and change prices of other products in checkout and cart page
- Use Case: Multiple Shipping Methods per Order
- In woocommerce, is there any way to empty wordpress default mini cart when order placed?
- Get a list of Product Categories inside a loop
- WordPress Ajax request “Failed to load resource: the server responded with a status of 400 ()”
- WordPress Thickbox Navigation Issue in Gallery
- Dynamic input fields in WordPress Plugin
- 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
- 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
- Can’t find variable is_single in my jQuery plugin
- Javascript in plugin not working
- 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
- get_option include in my adsense
- Unable to show 4 products in a row
- The plugin generated xxx characters of unexpected output during activation
- Modifying lightbox plugin to allow for quoting, Does this exist? [closed]
- 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
- 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]