Support » Fixing WordPress » Want to allow user to choose favorite categories outside of WordPress

  • I am running WordPress as an off-shoot of a larger site as an online magazine.

    On my main site (same domain, not in the WordPress directory), I would like to allow the user to select their favorite categories from WordPress (and have it look like the area where you select categories while posting articles in WordPress). I want to take the categories they choose and display the 5 most recent articles from those categories on their profile page.

    I am having trouble getting the category checklist to work properly. I have included the blog header, but cannot get the category list to display.

    Any help would be appreciated.

    Thank you very much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • It would help if you both linked to the site and a profile page and provide the code that you’ve used thus far.

    Thread Starter rio38

    (@rio38)

    WordPress Page

    Profile Page

    I am more looking for a direction as to how to accomplish this with some specific code.

    Very basic code I used to simply display the categories (I just began):

    <?php
    
    	include "http://www.unsunghero.com/wordpress/wp-config.php";
    	include "http://www.unsunghero.com/wordpress/wp-includes/classes.php";
    	include "http://www.unsunghero.com/wordpress/wp-includes/functions.php";
    	include "http://www.unsunghero.com/wordpress/wp-includes/plugin.php";
    	include "http://www.unsunghero.com/wordpress/wp-admin/includes/template.php";
    wp();
    
    include "http://www.unsunghero.com/wordpress/template-loader.php";
    ?>
    
    <html>
    <body>
    <div id="categories-all" class="ui-tabs-panel">
    	<ul id="categorychecklist" class="list:category categorychecklist form-no-clear">
    		<?php wp_category_checklist($post_ID) ?>
    	</ul>
    </div>
    </body>
    </html>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Want to allow user to choose favorite categories outside of WordPress’ is closed to new replies.