Shortcuts stopped working
-
Recently the shortcuts created in a php in Code Snippet stopped working. I believe it was due to update to wordpress but i maybe wrong. Any other ideas? These snippets have been working for 2 years+
-
Hi @jkp2015
To help you troubleshoot the issue, could you please share the specific code snippet that has stopped working?
Sometimes updates to WordPress or PHP can affect how certain code works, but we need to see the actual snippet to provide more detailed guidance.
Please send us the code you’re using, and we’ll be happy to take a closer look!
@markomiljanovic See below
function due_diligence_landing_page_shortcode($atts) {
// Extract shortcode attributes
$atts = shortcode_atts(array(
‘title’ => ‘Master Note Investment Due Diligence – Transform Your Returns’,
‘price’ => ‘$9.99’,
‘regular_price’ => ‘$48.99’,
‘checkout_url’ => ‘https://jkpholdings.com/checkout/?add-to-cart=5810’
), $atts);// Start output buffering ob_start(); ?> <style>.dd-landing-page * {
margin: 0;
padding: 0;
box-sizing: border-box;
}.dd-landing-page {
font-family: ‘Arial’, sans-serif;
line-height: 1;
color: #333;
width: 100%;
overflow-x: hidden;
}/* Side Menu Styles */
.dd-landing-page .menu-toggle:hover {
background: linear-gradient(45deg, #1d4ed8, #2563eb);
transform: scale(1.1);
}.dd-landing-page .side-menu {
position: fixed;
top: 0;
left: -300px;
width: 300px;
height: 100vh;
background: white;
z-index: 1500;
transition: left 0.3s ease;
box-shadow: 2px 0 15px rgba(0,0,0,0.1);
overflow-y: auto;
}.dd-landing-page .side-menu.open {
left: 0;
}.dd-landing-page .menu-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0,0,0,0.5);
z-index: 1400;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}.dd-landing-page .menu-overlay.active {
opacity: 1;
visibility: visible;
}.dd-landing-page .menu-header {
background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
color: white;
padding: 20px;
text-align: center;
}.dd-landing-page .menu-close {
position: absolute;
top: 15px;
right: 15px;
background: none;
border: none;
color: white;
font-size: 1.5rem;
cursor: pointer;
}.dd-landing-page .menu-content {
padding: 20px 0;
}.dd-landing-page .menu-item {
display: block;
padding: 15px 25px;
color: #333;
text-decoration: none;
border-bottom: 1px solid #eee;
transition: all 0.3s ease;
}.dd-landing-page .menu-item:hover {
background: linear-gradient(90deg, #1e40af, #3b82f6);
color: white;
padding-left: 35px;
}.dd-landing-page .menu-section {
padding: 10px 25px;
font-weight: bold;
color: #1e40af;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 1px;
}.dd-landing-page .hero {
background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
color: white;
min-height: 75vh;
display: flex;
align-items: center;
text-align: center;
position: relative;
overflow: hidden;
}.dd-landing-page .hero::before {
content: ”;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url(‘data:image/svg+xml,’);
background-size: cover;
}.dd-landing-page .container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
position: relative;
z-index: 1;
width: 100%;
}.dd-landing-page .hero h1 {
font-size: 3.5rem;
font-weight: 900;
margin-bottom: 1rem;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
color: white;
}.dd-landing-page .hero .subtitle {
font-size: 1.5rem;
margin-bottom: 2rem;
opacity: 0.9;
}.dd-landing-page .hero .problem {
font-size: 1.2rem;
background: rgba(255,255,255,0.15);
padding: 1.5rem;
border-radius: 10px;
margin-top: 1.5rem;
backdrop-filter: blur(10px);
border: 1px solid rgba(255,255,255,0.2);
}.dd-landing-page .cta-button {
display: inline-block;
background: linear-gradient(45deg, #1e40af, #3b82f6);
color: white;
padding: 1rem 2.5rem;
font-size: 1.3rem;
font-weight: bold;
text-decoration: none;
border-radius: 50px;
box-shadow: 0 10px 30px rgba(30, 64, 175, 0.4);
transition: all 0.3s ease;
text-transform: uppercase;
letter-spacing: 1px;
border: 2px solid rgba(255,255,255,0.3);
}.dd-landing-page .cta-button:hover {
transform: translateY(-3px);
box-shadow: 0 15px 40px rgba(30, 64, 175, 0.6);
background: linear-gradient(45deg, #1d4ed8, #2563eb);
}.dd-landing-page .pulse {
animation: dd-pulse 2s infinite;
}@keyframes dd-pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}@keyframes dd-bounce {
0%, 20%, 50%, 80%, 100% {
transform: translateX(-50%) translateY(0);
}
40% {
transform: translateX(-50%) translateY(-10px);
}
60% {
transform: translateX(-50%) translateY(-5px);
}
}.dd-landing-page .pain-points {
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
padding: 4rem 0;
}.dd-landing-page .pain-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin-top: 2rem;
}.dd-landing-page .pain-card {
background: white;
padding: 2rem;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(30, 64, 175, 0.1);
text-align: center;
border-left: 5px solid #1e40af;
transition: all 0.3s ease;
}.dd-landing-page .pain-card:nth-child(even) {
background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
border-left: 5px solid #3b82f6;
}.dd-landing-page .pain-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 40px rgba(30, 64, 175, 0.2);
}.dd-landing-page .pain-card h3 {
color: #1e40af;
margin-bottom: 1rem;
font-size: 1.4rem;
}.dd-landing-page .solution-section {
background: white;
padding: 4rem 0;
}.dd-landing-page .step-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1.5rem;
margin-top: 3rem;
}.dd-landing-page .step-card {
color: white;
padding: 2rem;
border-radius: 15px;
text-align: center;
position: relative;
overflow: hidden;
transition: all 0.3s ease;
}.dd-landing-page .step-card:nth-child(odd) {
background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}.dd-landing-page .step-card:nth-child(even) {
background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
color: #1e40af;
}.dd-landing-page .step-card:nth-child(odd) h3 {
color: white;
}.dd-landing-page .step-card:nth-child(even) h3 {
color: #1e40af;
}.dd-landing-page .step-card:hover {
transform: translateY(-5px) scale(1.02);
}.dd-landing-page .step-number {
position: absolute;
top: -10px;
right: -10px;
background: rgba(255,255,255,0.9);
color: #1e40af;
width: 50px;
height: 50px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 1.2rem;
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}.dd-landing-page .benefits {
background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
color: white;
padding: 4rem 0;
}.dd-landing-page .benefit-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin-top: 2rem;
}.dd-landing-page .benefit-item {
padding: 1.5rem;
border-radius: 10px;
backdrop-filter: blur(10px);
transition: all 0.3s ease;
}.dd-landing-page .benefit-item:nth-child(odd) {
background: rgba(255,255,255,0.15);
border: 1px solid rgba(255,255,255,0.2);
}.dd-landing-page .benefit-item:nth-child(even) {
background: rgba(255,255,255,0.25);
border: 1px solid rgba(255,255,255,0.3);
}.dd-landing-page .benefit-item:hover {
transform: translateY(-3px);
background: rgba(255,255,255,0.3);
}.dd-landing-page .benefit-item h4 {
margin-bottom: 0.5rem;
font-size: 1.2rem;
color: white;
}.dd-landing-page .testimonial {
background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
color: white;
padding: 4rem 0;
text-align: center;
}.dd-landing-page .testimonial-card {
background: rgba(255,255,255,0.1);
padding: 2rem;
border-radius: 15px;
max-width: 800px;
margin: 0 auto;
backdrop-filter: blur(10px);
border: 1px solid rgba(255,255,255,0.2);
}.dd-landing-page .section-subtitle {
font-size: 1.3rem;
text-align: center;
opacity: 0.8;
margin-bottom: 2rem;
}.dd-landing-page .menu-toggle {
position: fixed;
top: 20px;
left: 20px;
background: linear-gradient(45deg, #1e40af, #3b82f6);
color: white;
border: none;
width: 50px;
height: 50px;
border-radius: 50%;
font-size: 1.5rem;
cursor: pointer;
z-index: 1600;
box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
transition: all 0.3s ease;
}/* SECTION TITLES – Most Important Rules – Keep at the End */
.dd-landing-page h1,
.dd-landing-page h2,
.dd-landing-page h3,
.dd-landing-page h4,
.dd-landing-page .section-title,
.dd-landing-page section .section-title,
.dd-landing-page .container .section-title {
text-align: center !important;
}.dd-landing-page .section-title {
font-size: 2.5rem !important;
font-weight: bold !important;
text-align: center !important;
margin-bottom: 1rem !important;
display: block !important;
width: 100% !important;
margin-left: auto !important;
margin-right: auto !important;
}.dd-landing-page .benefits .section-title,
.dd-landing-page .testimonial .section-title {
color: white !important;
}@media (max-width: 768px) {
.dd-landing-page .side-menu {
width: 280px;
left: -280px;
}.dd-landing-page .menu-toggle { top: 15px; left: 15px; width: 45px; height: 45px; font-size: 1.3rem; } .dd-landing-page .hero h1 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 1rem; } .dd-landing-page .hero .subtitle { font-size: 1.1rem; margin-bottom: 1.5rem; } .dd-landing-page .container { padding: 0 15px; } .dd-landing-page .step-grid { grid-template-columns: 1fr; } .dd-landing-page .hero .cta-button { font-size: 1.2rem !important; padding: 1rem 2rem !important; width: 100%; text-align: center; display: block; } .dd-landing-page .hero .problem { font-size: 1rem; padding: 1rem; margin-top: 1.5rem; }}
/* Carousel Section */
.dd-landing-page .carousel-section {
padding: 4rem 0;
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
position: relative;
}.dd-landing-page .carousel-container {
position: relative;
max-width: 1200px;
margin: 0 auto;
border-radius: 20px;
background: rgba(30, 64, 175, 0.05);
padding: 20px 20px;
}.dd-landing-page .carousel-wrapper {
padding: 0;
}.dd-landing-page .carousel-track {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 30px;
padding: 20px 0;
}.dd-landing-page .carousel-item {
background: white;
padding: 30px;
border-radius: 15px;
text-align: center;
border: 1px solid rgba(30, 64, 175, 0.2);
transition: transform 0.3s ease;
box-shadow: 0 10px 30px rgba(30, 64, 175, 0.1);
border-left: 5px solid #1e40af;
}.dd-landing-page .carousel-item:hover {
transform: translateY(-5px) scale(1.02);
background: rgba(255, 255, 255, 1);
box-shadow: 0 15px 40px rgba(30, 64, 175, 0.2);
}.dd-landing-page .carousel-item h4 {
color: #1e40af;
margin-bottom: 15px;
font-size: 1.3rem;
font-weight: 600;
}.dd-landing-page .carousel-item p {
color: #333;
margin-bottom: 20px;
font-size: 0.95rem;
line-height: 1.4;
}.dd-landing-page .carousel-item .current-price {
font-size: 1.8rem;
color: #1e40af;
font-weight: bold;
margin-bottom: 15px;
}.dd-landing-page .carousel-item .cta-button {
padding: 12px 24px;
font-size: 1rem;
border-radius: 25px;
background: linear-gradient(45deg, #1e40af, #3b82f6);
color: white;
text-decoration: none;
display: inline-block;
transition: all 0.3s ease;
font-weight: 600;
text-transform: none;
letter-spacing: normal;
}.dd-landing-page .carousel-item .cta-button:hover {
background: linear-gradient(45deg, #1d4ed8, #2563eb);
transform: translateY(-2px);
}.dd-landing-page .carousel-controls {
display: none;
}.dd-landing-page .carousel-btn {
display: none;
}/* Responsive for carousel */
@media (max-width: 768px) {
.dd-landing-page .carousel-track {
grid-template-columns: 1fr;
gap: 20px;
}.dd-landing-page .carousel-container { margin: 0 10px; padding: 20px 15px; }}
@media (max-width: 1024px) and (min-width: 769px) {
.dd-landing-page .carousel-track {
grid-template-columns: repeat(2, 1fr);
}
}<div class="dd-landing-page"> <!-- Menu Toggle Button --> <button class="menu-toggle" onclick="ddOpenMenu()">☰</button> <!-- Menu Overlay --> <div class="menu-overlay" onclick="ddCloseMenu()"></div> <!-- Side Menu --> <nav class="side-menu" id="ddSideMenu"> <div class="menu-header"> <button class="menu-close" onclick="ddCloseMenu()">×</button> <h3>JKP Holdings</h3> <p style="font-size: 0.9rem; opacity: 0.9;">Navigation Menu</p> </div> <div class="menu-content"> <div class="menu-section">Main Pages</div> <a href="<?php echo home_url('/'); ?>" class="menu-item">Home</a> <a href="<?php echo home_url('/about-us/'); ?>" class="menu-item">About Us</a> <a href="<?php echo home_url('/contact-us/'); ?>" class="menu-item">Contact</a> <div class="menu-section">Note Investing</div> <a href="<?php echo home_url('/sell-my-mortgage-note/'); ?>" class="menu-item">Sell Mortgage Note</a> <a href="<?php echo home_url('/buy-mortgage-notes/'); ?>" class="menu-item">Buy Notes</a> <a href="<?php echo home_url('/real-estate-notes-show/'); ?>" class="menu-item">Notes Show</a> <div class="menu-section">Training & Tools</div> <a href="<?php echo home_url('/beginner-series/'); ?>" class="menu-item">Note Investing 101</a> <a href="<?php echo home_url('/spreadsheet-calculator-training/'); ?>" class="menu-item">Calculator Training</a> <a href="<?php echo home_url('/note-investing/advanced-note-investing-training/'); ?>" class="menu-item">Advanced Training</a> <a href="<?php echo home_url('/consulting/'); ?>" class="menu-item">Consulting</a> <a href="<?php echo home_url('/bid-calculator/'); ?>" class="menu-item">Bid Calculator</a> <div class="menu-section">Resources</div> <a href="<?php echo home_url('/due-diligence/'); ?>" class="menu-item">Due Diligence Portal</a> <a href="https://portal.jkpholdings.com/login" class="menu-item">JKP Portal</a> <div class="menu-section">Legal</div> <a href="<?php echo home_url('/portal-legal/privacy-policy/'); ?>" class="menu-item">Privacy Policy</a> <a href="<?php echo home_url('/terms-conditions/'); ?>" class="menu-item">Terms & Conditions</a> </div> </nav> <!-- Hero Section --> <section class="hero"> <div class="container"> <h1>Stop Losing Money on Note Investments!</h1> <p class="subtitle">Master the 9-Step Due Diligence Process That Protects Your Capital & Maximizes Returns</p> <!-- Price Reveal Above the Fold --> <div style="background: rgba(255,255,255,0.2); padding: 2rem; border-radius: 15px; margin: 2rem 0; backdrop-filter: blur(10px); border: 2px solid rgba(255,255,255,0.3);"> <div style="text-decoration: line-through; color: rgba(255,255,255,0.8); font-size: 1.8rem; margin-bottom: 0.5rem;"> Regular Value: <?php echo esc_html($atts['regular_price']); ?> </div> <div style="font-size: 3rem; font-weight: 900; color: #ffffff; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); margin-bottom: 1rem;"> Only <?php echo esc_html($atts['price']); ?>! </div> <div style="font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 1.5rem;"> <strong>That's 80% OFF!</strong> AND Less than the cost of lunch </div> <a href="<?php echo esc_url($atts['checkout_url']); ?>" class="cta-button pulse" style="font-size: 1.4rem; padding: 1.2rem 3rem;">Get The Complete Process For <?php echo esc_html($atts['price']); ?>!</a> </div> <div class="problem"> <strong>The Harsh Reality:</strong> 73% of note investors lose money because they skip proper due diligence. Don't be another statistic. </div> <div style="position: absolute; bottom: -50px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.8); font-size: 1.5rem; animation: dd-bounce 2s infinite; pointer-events: none; z-index: 10;"> ↓ Scroll to see the costly mistakes ↓<!-- Pain Points Section --> <section class="pain-points"> <div class="container"> <h2 class="section-title" style="color: #1e40af; text-align: center !important;">Are You Making These Costly Mistakes?</h2> <div class="pain-grid"> <div class="pain-card"> <h3>❌ Buying Blind</h3> <p>Purchasing notes without proper asset filtering, only to discover unfavorable state laws or unmarketable properties later.</p> </div> <div class="pain-card"> <h3>❌ Collateral Nightmares</h3> <p>Missing assignments, broken chains of ownership, and title defects that make your investment worthless.</p> </div> <div class="pain-card"> <h3>❌ Bankruptcy Surprises</h3> <p>Borrowers filing Chapter 13 at the last minute, halting foreclosures and destroying your timeline and profits.</p> </div> <div class="pain-card"> <h3>❌ Property Valuation Errors</h3> <p>Overestimating property values by 20-30%, leading to massive losses when you need to foreclose and sell.</p> </div> </div> </div> </section> <!-- Solution Section --> <section class="solution-section"> <div class="container"> <h2 class="section-title" style="color: #1e40af; text-align: center !important;">Introducing the Proven 9-Step Due Diligence Process</h2> <p class="section-subtitle" style="color: #3b82f6;">Used by JKP Holdings to Analyze Over $50M in Note Investments</p> <div class="step-grid"> <div class="step-card"> <div class="step-number">1</div> <h3>Asset Filtering</h3> <p>Systematic criteria to eliminate bad deals before you waste time and money.</p> </div> <div class="step-card"> <div class="step-number">2</div> <h3>Bid Calculator</h3> <p>Evaluate performing notes, foreclosures, and REO scenarios with precision.</p> </div> <div class="step-card"> <div class="step-number">3</div> <h3>Indicative Offers</h3> <p>Structure competitive offers that protect your reputation and profits.</p> </div> <div class="step-card"> <div class="step-number">4</div> <h3>Post-Offer DD</h3> <p>13 critical items to request and analyze after your offer is accepted.</p> </div> <div class="step-card"> <div class="step-number">5</div> <h3>Local Expert Review</h3> <p>Leverage REO agents for accurate property valuations and market insights.</p> </div> <div class="step-card"> <div class="step-number">6</div> <h3>O&E Reports</h3> <p>Uncover hidden liens, tax issues, and title problems before they cost you.</p> </div> <div class="step-card"> <div class="step-number">7</div> <h3>Bankruptcy Check</h3> <p>Identify borrower financial history and potential Chapter 13 risks.</p> </div> <div class="step-card"> <div class="step-number">8</div> <h3>Final Verification</h3> <p>Last-minute checks to ensure all documentation is complete and accurate.</p> </div> <div class="step-card"> <div class="step-number">9</div> <h3>Purchase Decision</h3> <p>Make confident investment decisions backed by comprehensive analysis.</p> </div> </div> </div> </section> <!-- Benefits Section --> <section class="benefits"> <div class="container"> <h2 class="section-title" style="text-align: center !important;">What You'll Get Inside</h2> <p class="section-subtitle" style="text-align: center !important;">Everything You Need to Become a Confident Note Investor</p> <div class="benefit-list"> <div class="benefit-item"> <h4>📋 Complete Due Diligence Checklist</h4> <p>Never miss a critical step with our comprehensive 9-step process checklist.</p> </div> <div class="benefit-item"> <h4>🧮 Bid Calculator Spreadsheet</h4> <p>Excel template to calculate accurate bids for any note scenario.</p> </div> <div class="benefit-item"> <h4>📄 Document Request Templates</h4> <p>Professional templates for requesting all necessary documentation.</p> </div> <div class="benefit-item"> <h4>🔍 Red Flag Identification Guide</h4> <p>Learn to spot warning signs that could cost you thousands.</p> </div> <div class="benefit-item"> <h4>💰 ROI Maximization Strategies</h4> <p>Proven techniques to increase your returns while minimizing risk.</p> </div> <div class="benefit-item"> <h4>📞 Expert Contact List</h4> <p>Vetted professionals for title work, valuations, and legal support.</p> </div> </div> </div> </section> <!-- Testimonial Section --> <section class="testimonial"> <div class="container"> <h2 class="section-title">What Our Clients Say</h2> <div class="testimonial-card"> <p style="font-size: 1.3rem; font-style: italic; margin-bottom: 1rem;">"This process saved me from a $75,000 mistake. The bankruptcy check alone was worth 10x what I paid for this training."</p> <p style="font-weight: bold; color: #60a5fa;">- Sarah M., Professional Note Investor</p> </div> </div> </section><section class="carousel-section"> <div class="container"> <h2 class="section-title" style="color: #1e40af; text-align: center !important;">Complete Your Note Investing Education</h2> <div class="carousel-container"> <div class="carousel-wrapper"> <div class="carousel-track" id="ddCarouselTrack"> <div class="carousel-item"> <h4>13 Indicative Offer Questions</h4> <p>13 Must-Ask Questions when submitting an offer to a Note Seller</p> <div class="current-price">$47.00</div> <a href="https://jkpholdings.com/indicative-offers/" class="cta-button">Learn More</a> </div> <div class="carousel-item"> <h4>Master Note Tape Headers</h4> <p>Stop Over-Bidding on Notes! Learn to Read Note Tapes Like a Pro</p> <div class="current-price">$49.99</div> <a href="https://jkpholdings.com/tape-headers-and-bid-calculator/" class="cta-button">Get Access</a> </div> <div class="carousel-item"> <h4>Financial Calculator</h4> <p>Professional spreadsheet calculator training for accurate deal analysis</p> <div class="current-price">$99.99</div> <a href="https://jkpholdings.com/spreadsheet-calculator-training/" class="cta-button">Start Here</a> </div> <div class="carousel-item"> <h4>Note Investing 101 Education</h4> <p>Complete beginner's guide to note investing from A to Z</p> <div class="current-price">$69.99</div> <a href="https://jkpholdings.com/beginner-series/" class="cta-button">Explore</a> </div> <div class="carousel-item"> <h4>Note Consulting</h4> <p>Private 1-on-1 session with Dave Putz</p> <div class="current-price">$60-$120</div> <a href="https://jkpholdings.com/consulting/" class="cta-button">Schedule</a> </div> </div> </div> <div class="carousel-controls"> <button class="carousel-btn" id="ddPrevBtn">‹</button> <button class="carousel-btn" id="ddNextBtn">›</button> </div> </div> </div> </section><script> function ddOpenMenu() { document.getElementById('ddSideMenu').classList.add('open'); document.querySelector('.dd-landing-page .menu-overlay').classList.add('active'); } function ddCloseMenu() { document.getElementById('ddSideMenu').classList.remove('open'); document.querySelector('.dd-landing-page .menu-overlay').classList.remove('active'); } // Close menu when clicking on a menu item document.querySelectorAll('.dd-landing-page .menu-item').forEach(item => { item.addEventListener('click', ddCloseMenu); }); </script> <?php return ob_get_clean();}
// Register the shortcode
function register_due_diligence_shortcode() {
add_shortcode(‘due_diligence_landing’, ‘due_diligence_landing_page_shortcode’);
}
add_action(‘init’, ‘register_due_diligence_shortcode’);/**
- Alternative: Create as a Plugin
- If you prefer to create this as a plugin instead of adding to functions.php,
- save this entire code as a .php file with the plugin header below:
*/
/*
Plugin Name: Due Diligence Landing Page
Description: Shortcode for displaying the note investment due diligence landing page
Version: 1.0
Author: Your Name
*/// Prevent direct access
//if (!defined(‘ABSPATH’)) {
// exit;
//}Hi @jkp2015,
It looks like the code formatting didn’t come through properly, some sections are missing, which can happen when copying and pasting longer code.
To help us look into this further, could you please send the snippet in a different way? You’re welcome to reach out using our contact form at https://wpcode.com/contact and include an export of your snippets from the WPCode Tools page. This will help us replicate and troubleshoot the issue more effectively.@markomiljanovic we found out that we could no longer use a short code we had to use the ID Number to get it to appear on the page. Shortcode no longer works.
Hi @jkp2015,
Thank you for the update, let us know if you run into any issues.
The topic ‘Shortcuts stopped working’ is closed to new replies.