WordPress.org

Ready to get started?Download WordPress

Forums

Choosing post types for Wiki Page Links (3 posts)

  1. thhhhh
    Member
    Posted 2 years ago #

    Hello everyone.

    I'm building a database of early animation, and I want to make use of the "Wiki Page Links" plugin (http://wordpress.org/extend/plugins/wiki-page-links/)

    In particular, I want it to make use of the plugin's feature to allow users to link to pages that don't yet exist. For example, Porky Pig on the back-end would appear as Porky Pig[?] on the front-end if the page doesn't exist. When you click the "Porky Pig[?]" link, the plug-in takes you to create a new page called "Porky Pig".

    What I would like to do instead is have a drop-down, or perhaps an intermediate page, where users choose what post-type they would like to create as well as having access to custom taxonomies, rather than simply attaching the label to a page. I have post types for "Animators", "Cartoons" and "Studios" as it is. I would like to preserve the original link data, so that after users have made their selection, a new post of the appropriate type already suggests the title of "Porky Pig"

    Does anyone know how to do this?

    Many thanks in advance...

  2. thhhhh
    Member
    Posted 2 years ago #

    The first Porky Pig, the one that turned into a link, was meant to read as:

    <a href="http://codex.wordpress.org/Porky_Pig">Porky Pig</a>

  3. dscassel
    Member
    Posted 2 years ago #

    Hi thhhhh,

    I got it.

    If you want to change the page that link takes you to, you can just change this url in the code: $home/wp-admin/post-new.php?post_type=page&post_title=$encodedlink

    Of course, I don't think there's a url in WordPress that will get you exactly what you want. Wiki Page Links is meant ot be a super-simple plugin that only does one thing (well, two, actually, since I added wikipedia links). It gives you an easy way to link to pages.

    I'll happily accept contributions, though. Also, it's GPL, so you're welcome to fork it and take it in a different direction.

Topic Closed

This topic has been closed to new replies.

About this Topic