• I have a small issue or maybe I`m looking for easier to use salvation.

    Example:
    Let’s say, on our contests site, in our “header” we have something like “Today’s winner is…” and we are changing winner every day. I know I can do something like winner.php than “get” in template, but its not so cool for average site owner and I would like him not to browse through all this templates to edit winner.php. I dont want to do special side bar to put there txt area widget just for 1 sentence -_-.

    Just wonderful would be something like “Editable fields” among Media, Pages, Comments, Posts in Content section. Is there any plugin making it possible? usually CMS have something like chunks for custom code or snippet for php and you put function into template. Can`t find it in WP.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator keesiemeijer

    (@keesiemeijer)

    You can make posts with a category “winner” and exclude the category “winner” from your normal loop using query posts. And then show the first post with a category “winner” (also using query posts) in the header.

    Moderator keesiemeijer

    (@keesiemeijer)

    or even better making a custom post type “winner” and showing the first post with a custom post type “winner” (using query posts) in the header.

    Thread Starter Trimek

    (@trimek)

    Tried that one, managed to get posts, tag etc. but when I try to put post in correct place its always going to the content area instead of place it belongs, even when i dont gave blog/post query on such page.

    Moderator keesiemeijer

    (@keesiemeijer)

    Did you made a “custom post type or a category winner? Please provide a link to the website in question and a link to your theme if possible. And tell us where you want the custom post type or posts with category winner to appear.

    This helped me. You can create custom Theme Options that will appear under Appearance menu.

    http://forthelose.org/how-to-create-a-theme-options-page-for-your-wordpress-theme

    The big piece of code in Step Two is not much to worry about when using it. It just provides a base framework for displaying different input box styles so your custom admin menu isn’t ugly.

    What about just using a Text widget and showing the winner in the sidebar?

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘My own editable in-theme fields’ is closed to new replies.