• I apologize in advance– I am obviously not understanding concepts.

    We have a wiki of Illinois authors. There are 3000+ names in the system. I don’t want to build 3000+ WordPress pages that simply contain a shortcode to each link. What I thought I might do instead is create a template, feeding the title of the page to the template in the page URL as something like: https://www.illinoisauthors.org/wordpress/illinois_authors?authorid=Donald_Culross_Peattie

    The template I cobbled together is simple:

    <?php
    get_header();
    $authorID = $_GET[‘authorid’];
    ?>
    <div class=”wrap”>
    <div id=”primary” class=”content-area”>
    <main id=”main” class=”site-main” role=”main”>
    <?php
    while ( have_posts() ) : the_post();
    get_template_part( ‘template-parts/page/content’, ‘page’ );
    echo “[rdp-wiki-embed url=’https://www.illinoisauthors.org/authors/&#8221; . $authorID . “‘]”;
    endwhile; // End of the loop.
    ?>
    </main><!– #main –>
    </div><!– #primary –>
    </div><!– .wrap –>
    <?php get_footer(); ?>

    Obviously, all this does is print out the shortcode as a literal string instead of actually firing off the plugin.

    Could you point me to a method that would allow me to use rdp-wiki-embed dynamically?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Creating dynamic pages — using RDP in a template’ is closed to new replies.