• I am using Headway Theme, and am having trouble with the “WordPress Wiki” plugin by Instinct.

    I can’t make the Table of contents work.

    So far what I know is that I need to enable “custom fields” in screen options, enter a key and a value and then move on to some coding.

    So far what I understand is this:

    I need to add this code (<?php the_meta(); ?>) into the loop in the single.php file, at least for general purposes. So far testing this out on a basic blog post hasn’t worked for me. I’m sure that the specifics for the Table of Contents in WordPress Wiki will be more involved, but i was hoping I could at least work out the simple version.

    I can’t find any info that explains specifically what it means to place something “in the loop”. I have seen examples of code but none of them look like the code I am seeing in my php files.

    Anyway, I have been beating my head against the wall with a lot of vague and incomplete instructions. I could really use some help on this. Just want to get the Table of Contents working.

    Thanks for any help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mrerikmt

    (@mrerikmt)

    By the way-I have been trying to work out the basics of this in the Twenty Ten theme. Still no luck.

    Thread Starter mrerikmt

    (@mrerikmt)

    Is this the loop for the WordPress Wiki posts?
    I see information concerning the table of contents here as well.

    wordpress-wiki/wordpress-wiki.php

    //Enables Wiki Pages
    $WikiPostType = new WikiPostType();

    //Create classes for our components. This will be changed to allow filtering in a future release.
    $WikiPageController = new WikiPageController();
    $WikiNotifications = new WikiNotifications();
    $WikiFeed = new WikiFeed();
    $WikiAdmin = new WikiAdmin();
    $WikiDashboardWidget = new WikiDashboardWidget();

    //Version-specific actions and filters

    if ($wp_version >= 3.0):
    //Register the post type
    add_action(‘init’, array($WikiPostType,’register’) );

    //Set permissions
    add_action(‘init’, array($WikiPostType,’set_permissions’) );

    //Make Table of Contents on by default for Wiki post type
    add_action(‘publish_wiki’,array($WikiPageController,’set_toc’), 12);

    //Make Table of Contents on by default for pages marked as Wikis
    add_action(‘publish_page’,array($WikiPageController,’set_toc’));
    else:
    //Make Table of Contents on by default for pages marked as Wikis
    add_action(‘publish_page’,array($WikiPageController,’set_toc’));
    //Manage permissions for versions prior to 3.0
    add_filter(‘user_has_cap’, array($WikiPostType, ‘page_cap’), 100, 3);
    endif;

    Anyone know if this is where I need to place the “get meta” thing?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need help with custom fields for ToC in wiki plugin’ is closed to new replies.