I want users to be able to post images only on a designated page for them.
currently when i post with the post from site it posts to my home page.
is there a way to make it post to a designated page?
I want users to be able to post images only on a designated page for them.
currently when i post with the post from site it posts to my home page.
is there a way to make it post to a designated page?
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 ;
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!
You must log in to post.