Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi raybanm,

    You can use triggers in order to solve this. Just asign a category to a new post (for example, post_images) with a trigger in table wp-posts, and then block this category from your home page adding

    <?php query_posts($query_string . ‘&cat=-11’); ?>

    just before “if (have_posts()…. ” on your index.php and assuming that 11 is the id of the category that you want to block.

    Then create a new item in your main menu and asign it to “post_images” category.

    Edited: a trigger like this one could be valid for you. You mast change 11 for the real id of the category “post_images”.

    DELIMITER $$

    CREATE TRIGGER asigncategory AFTER UPDATE ON wp_posts
    FOR EACH ROW BEGIN
    INSERT INTO wp_term_relationships VALUES (NEW.ID, ’11’, ‘0’);
    END;

    $$

    DELIMITER ;

    Thread Starter raybanm

    (@raybanm)

    first of all, collaboratorfab, thank you for the quick reply.
    second, i forgot to write that i am very new to wordpress & web development in general.

    I don’t know how to assign trigger (or what that even means), and don’t know where or what the table wp-post.
    maybe you could clear up your reply for me a bit?

    thank you again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Post From Site] Publish on specific page’ is closed to new replies.