Build link to launch/populate page
-
Evening all,
My wordpress powered site is one that displays quotes on a page. Groundbreaking, I know.
A page is made up of simply: “Quote text, blah blah.” -Quote Author
-Quote text is stored in wp_posts and Quote Author is populated from a new table that I created, called wp_qauthor (tied to wp_posts via wp_postmeta). Clicking on -Quote Author should display all quotes by that Quote Author (in the same format as the main page) and the URL should be: http://www.quoote.com/emerson, where wp_qauthor.qauthor_name = ’emerson’.Question A: How do I build the link to launch/populate that page? I have the following thus far:
<?php $qauthor_name = $wpdb->get_var("SELECT qauthor_name FROM wp_qauthor WHERE qauthor_id = " . get_post_meta($post->ID, 'qauthor_id', true)) ?> <span class="author">- <a href="?????" title="Quotes by <?php echo $qauthor_name?>"><?php echo $qauthor_name?></a></span>Question B: How do I set the permalink up to achieve the URL I posted above?
Many thanks in advance.
The topic ‘Build link to launch/populate page’ is closed to new replies.