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
- 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
- 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]
- jQuery function didn’t work in my plugin
- Handling jQuery Component Collision
- 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
- How to stop activating a plugin and show admin notice when dependent plugins minimum version is not met
- How to modify WCMP Rest API response?
- Fetch Children of Grouped Products Inside WooCommerce Product Loop
- Woocommerce dependent plugin
- How to check current user before all actions and filters?
- New databes tables with – WooCommerce – for developers [closed]
- Change commission_status paid when withdraw_status vendor is completed
- custom payment gateway in woocommerce failed to connect to remote api server
- Creating a Callback URL for WordPress Woocommerce to update Order Status
- jQuery for custom plugin not working with Divi theme
- how to do login using woocommerce rest api From android
- Woocommerce Minimum Price for a Composite Product to add in cart
- How to prevent plugins from loading jQuery
- 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 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]
- Get Every Key & Value from Array then Display All in New Line
- Save user total active time after login in wordpress [closed]
- add seperate suffix for low price and high price in woocommerce
- 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]
- How to add category and subcategory in WordPress custom code?
- Ajax request sends url rather than data
- 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
- 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
- woocommerce: Customize email with item total count
- 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
- 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?
- category page multiple products add to cart any plugin available for woocommerce
- “Enable Media Replace” plugin does not update serialized object in WPMeta
- Change Woo Custom Endpoint Titles from a 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
- Dynamic input fields in WordPress Plugin
- Overwrite js code using WP_Footer
- 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
- 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
- Ajax, jQuery and WordPress
- How to get site homepage from plugin?
- 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
- 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]
- 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?
- Unable to Edit or Add Photo Gallery Under Portfolio in WordPress 6.2.5
- Need to add custom cart item data
- Custom Search Function in WordPress Returns No Results
- Ajax response from Media Selection does not update ALL information more than once