2025-06-09 05:33:32 +00:00
|
|
|
<?php
|
|
|
|
|
// Get related articles from the same category
|
|
|
|
|
$current_category = isset($article_category) ? $article_category : 'Industry Insights';
|
|
|
|
|
$current_slug = isset($article_slug) ? $article_slug : '';
|
|
|
|
|
|
|
|
|
|
// Define related articles for different categories
|
|
|
|
|
$related_articles = [
|
|
|
|
|
'Industry Insights' => [
|
|
|
|
|
[
|
|
|
|
|
'title' => 'UK Property Market Data Trends 2024',
|
|
|
|
|
'slug' => 'uk-property-market-data-trends',
|
|
|
|
|
'category' => 'Industry Insights',
|
|
|
|
|
'read_time' => '8 min read'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'title' => 'E-commerce Trends UK 2025',
|
|
|
|
|
'slug' => 'ecommerce-trends-uk-2025',
|
|
|
|
|
'category' => 'Industry Insights',
|
|
|
|
|
'read_time' => '6 min read'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'title' => 'Manufacturing Supply Chain Optimization',
|
|
|
|
|
'slug' => 'manufacturing-supply-chain-optimization',
|
|
|
|
|
'category' => 'Industry Insights',
|
|
|
|
|
'read_time' => '10 min read'
|
|
|
|
|
]
|
|
|
|
|
],
|
|
|
|
|
'Technology' => [
|
|
|
|
|
[
|
2026-03-21 10:39:15 +00:00
|
|
|
'title' => 'AI Automation for Professional Services',
|
|
|
|
|
'slug' => 'what-is-an-ai-agent-professional-services',
|
2025-06-09 05:33:32 +00:00
|
|
|
'category' => 'Technology',
|
|
|
|
|
'read_time' => '12 min read'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'title' => 'Selenium vs Playwright Comparison',
|
|
|
|
|
'slug' => 'selenium-vs-playwright-comparison',
|
|
|
|
|
'category' => 'Technology',
|
|
|
|
|
'read_time' => '8 min read'
|
|
|
|
|
],
|
|
|
|
|
[
|
2026-03-21 10:39:15 +00:00
|
|
|
'title' => 'Document Extraction: PDF to Database',
|
|
|
|
|
'slug' => 'document-extraction-pdf-to-database',
|
2025-06-09 05:33:32 +00:00
|
|
|
'category' => 'Technology',
|
|
|
|
|
'read_time' => '15 min read'
|
|
|
|
|
]
|
|
|
|
|
],
|
2026-03-21 10:13:14 +00:00
|
|
|
'AI Automation' => [
|
2025-06-09 05:33:32 +00:00
|
|
|
[
|
2026-03-21 10:13:14 +00:00
|
|
|
'title' => 'AI Automation Compliance UK Guide',
|
|
|
|
|
'slug' => 'web-Automation-compliance-uk-guide',
|
|
|
|
|
'category' => 'AI Automation',
|
2025-06-09 05:33:32 +00:00
|
|
|
'read_time' => '10 min read'
|
|
|
|
|
],
|
|
|
|
|
[
|
2026-03-21 10:13:14 +00:00
|
|
|
'title' => 'Handling CAPTCHAs in AI Automation',
|
|
|
|
|
'slug' => 'handling-captchas-Automation',
|
|
|
|
|
'category' => 'AI Automation',
|
2025-06-09 05:33:32 +00:00
|
|
|
'read_time' => '7 min read'
|
|
|
|
|
],
|
|
|
|
|
[
|
2026-03-21 10:13:14 +00:00
|
|
|
'title' => 'JavaScript Heavy Sites Automation',
|
|
|
|
|
'slug' => 'javascript-heavy-sites-Automation',
|
|
|
|
|
'category' => 'AI Automation',
|
2025-06-09 05:33:32 +00:00
|
|
|
'read_time' => '9 min read'
|
|
|
|
|
]
|
|
|
|
|
],
|
|
|
|
|
'Data Analytics' => [
|
|
|
|
|
[
|
|
|
|
|
'title' => 'Real-time Analytics with Streaming Data',
|
|
|
|
|
'slug' => 'real-time-analytics-streaming-data',
|
|
|
|
|
'category' => 'Data Analytics',
|
|
|
|
|
'read_time' => '11 min read'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'title' => 'SQL Analytics Advanced Techniques',
|
|
|
|
|
'slug' => 'sql-analytics-advanced-techniques',
|
|
|
|
|
'category' => 'Data Analytics',
|
|
|
|
|
'read_time' => '13 min read'
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'title' => 'Predictive Analytics for Customer Churn',
|
|
|
|
|
'slug' => 'predictive-analytics-customer-churn',
|
|
|
|
|
'category' => 'Data Analytics',
|
|
|
|
|
'read_time' => '9 min read'
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
// Get articles for current category, exclude current article
|
|
|
|
|
$category_articles = isset($related_articles[$current_category]) ? $related_articles[$current_category] : $related_articles['Industry Insights'];
|
|
|
|
|
$filtered_articles = array_filter($category_articles, function($article) use ($current_slug) {
|
|
|
|
|
return $article['slug'] !== $current_slug;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Limit to 3 articles
|
|
|
|
|
$display_articles = array_slice($filtered_articles, 0, 3);
|
|
|
|
|
?>
|
|
|
|
|
|
2026-02-22 09:47:09 +00:00
|
|
|
|
|
|
|
|
<!-- Service CTA Box — inserted by SEO update Feb 2026 -->
|
|
|
|
|
<section class="article-cta">
|
|
|
|
|
<div class="cta-inner">
|
|
|
|
|
<div class="cta-text">
|
|
|
|
|
<h3>Need data for your business?</h3>
|
2026-03-21 10:13:14 +00:00
|
|
|
<p>UK AI Automation delivers GDPR-compliant AI Automation, data extraction, and analytics — tailored to your industry. 99.8% accuracy, fast turnaround, no long-term contracts.</p>
|
2026-02-22 09:47:09 +00:00
|
|
|
</div>
|
|
|
|
|
<div class="cta-actions">
|
2026-03-20 17:08:18 +00:00
|
|
|
<a href="/quote" class="cta-btn cta-btn-primary">Get a Free Quote</a>
|
2026-03-21 10:13:14 +00:00
|
|
|
<a href="/services/web-Automation" class="cta-btn cta-btn-outline">See Our Services</a>
|
2026-02-22 09:47:09 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
|
2025-06-09 05:33:32 +00:00
|
|
|
<section class="related-articles">
|
|
|
|
|
<h2>Related Articles</h2>
|
|
|
|
|
<div class="related-grid">
|
|
|
|
|
<?php foreach ($display_articles as $article): ?>
|
|
|
|
|
<article class="related-card">
|
|
|
|
|
<span class="category"><?php echo htmlspecialchars($article['category']); ?></span>
|
2026-03-20 17:08:18 +00:00
|
|
|
<h3><a href="/blog/articles/<?php echo htmlspecialchars($article['slug']); ?>"><?php echo htmlspecialchars($article['title']); ?></a></h3>
|
2025-06-09 05:33:32 +00:00
|
|
|
<span class="read-time"><?php echo htmlspecialchars($article['read_time']); ?></span>
|
|
|
|
|
</article>
|
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="category-links">
|
2026-03-20 17:08:18 +00:00
|
|
|
<a href="/blog/categories/<?php echo strtolower(str_replace(' ', '-', $current_category)); ?>" class="btn">More <?php echo htmlspecialchars($current_category); ?> Articles</a>
|
2025-06-09 05:33:32 +00:00
|
|
|
<a href="/blog/" class="btn btn-secondary">All Blog Articles</a>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|