Ecommerce Shopify WordPress Discussion

Retrieve all links in a wordpress website

Is it possible to retrieve ALL links generated in a wordpress site? I am talkin about pages, dynamic links generated on a user request, custom post type and so on I tried a couple of plugin to get the map of a site but I only get a list of my static page. Instead, mappers online can go trough all my links and show me all the links. Is there a way to have a list of them? may using php o wordpress codex? I need to scrape them all to retrieve the last 3 link generated and show them in homepage Need to show last 3 gallery added using NextGen gallery plugin
No need to grab all the links on the website. You can use a WP_Query to grab the last 3 galleries like so <?php $gallery_query = new WP_Query([ 'post_type' => ['ngg_gallery'], 'posts_per_page' => 3 ]); while ( $gallery_query->have_posts() ) : $gallery_query->the_post(); $link = get_the_permalink(); // output your HTML using $link however you need to use it endwhile; If that doesn't work for you, you could also hook into one of these post updated hooks where you could check if a page containing a NewGen gallery was updated, and if so store it in the database, probably in a WP Option where you keep track of the last three pages that contained NextGen galleries.

January 23, 2024

TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.