WordPress.org

Ready to get started?Download WordPress

Forums

Page2cat: Category, Pages & Posts Shortcodes
[Plugin: Category Page] Connections lost in 3.0 (7 posts)

  1. treelovinhippie
    Member
    Posted 3 years ago #

    Hi

    Great plugin!

    Issue I'm having is that whenever you update a page, the connection to the category is lost.

    Any fix for this?

    Or does anyone know of a similar, 3.0-compatible plugin?

    Cheers

  2. treelovinhippie
    Member
    Posted 3 years ago #

  3. kiefer
    Member
    Posted 3 years ago #

    1.add this function

    function page2cat_xxx() {
        add_meta_box('page2cat1','Category Page Options',  'page2cat_add_meta_box', 'page', 'advanced', 'core');
    }

    2.
    add_action('admin_menu','page2cat_xxx');

  4. sinelnikov
    Member
    Posted 3 years ago #

    I change the plugin and it's worked:

    changed all delete and insert sql query from $wpdb->get_result to $wpdb->query
    and remove rel_id field from insert querys

    like that :

    $query = "INSERT INTO {$wpdb->page2cat} ( page_ID, cat_ID) VALUES ( '".$pageid."', '".$id."');";

    $daje = $wpdb->query($query);

  5. mi2oon
    Member
    Posted 3 years ago #

    This didn't work for me... I am using Version 3.0.4.. can ye help...thanks. Great plugin. :)

  6. sinelnikov
    Member
    Posted 3 years ago #

    I use this code

    [Code moderated as per the Forum Rules. Please use the pastebin]

  7. Paolo T. (pixline)
    Member
    Plugin Author

    Posted 3 years ago #

    I'm working on some contributed code as well as some cleaning/refactoring, it should ship a 3.x compatible version in the first week of April. Thank you for your patience.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags