• it would take a long post to explain my problem, but just assume i considered the possible ways to solve it and this is what i’ve found to be the best solution.
    i would like to create a new boolean template tag set in the post edit screen.
    when i write a new post i need a check box (boolean obviously) checked meaning true, unchecked meaning false. and the access to this boolean information has to be a boolean template tag (for instance: “is_checked()”) to be written within “THE LOOP” as it is per post.
    any suggestions as to how i can do this?
    Thank you!

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter enrico2

    (@enrico2)

    Should i have posted this on plugins and hacks?
    thank you.
    Enrico.

    [moved to “HowTo..” – where it belongs. And no need for double posting]

    Thread Starter enrico2

    (@enrico2)

    alright. so no help here. any thoughts on where i can persue further help on this matter?
    anotehr forum/website?
    or maybe even something more specific to google. because i don’t know if the solution i’m describing is considered a “plugin” or a “tweak” or something else all together.
    thanks again.
    Enrico.

    I don’t really get your question, but this link might be the answer

    http://codex.wordpress.org/Using_Custom_Fields

    And if you end up using custom field, grab this plugin
    http://rhymedcode.net/projects/custom-field-gui

    The plugin link doesn’t work 🙁

    mmm, what? I just tried and it worked fine?

    It works now. When I tried earlier couldn’t reach it.

    Thread Starter enrico2

    (@enrico2)

    YOU ROCK!
    it totally solved my problem!!
    using that plugin as well.

    THANK YOU THANK YOU THANK YOU!

    Thread Starter enrico2

    (@enrico2)

    now, is it possible to add a custom field to user submitted comments?

    this whole thing is to perfect a multi-lingual blog. since hebrew is the main language used but one of my authors writes stricly in english, i have to be able to make the difference between RTL (right-to-left hebrew) and LTR (left-to-right english) in titles and comments.

    enrico: Use radio buttons with a new input field(s) in your comment <form>?

    Thread Starter enrico2

    (@enrico2)

    but then i’d have to add the proper field for the radio button value in the comments table in the data base, so that in the comment display, for each comment, i can check that value and display the html properly according to that value.

    now i don’t have much expirience with altering database tables so i’m thinking more along the lines of a plugin that does something similar that i can adapt to my own uses.
    any ideas?

    I had been thinking (uh-oh) more of inserting a class=”lang1″ into the comment itself then adding to stylesheet:
    .lang1 {direction: rtl;}
    .lang2 {direction: ltr;}

    I’m probably missing something…

    Thread Starter enrico2

    (@enrico2)

    in a more technical way, let’s say i do have that radio button, my comments template now gets the comments for this post from the data base. let’s say this post has two comments, one is lang1, one is lang2.
    i have to have a variable that tells me which comment is lang1 and which is lang2 so i could do this:

    <div class='<?php echo(comment_lang);?>'>comment text here.</div>

    how do i access such a variable that the commenter sets when he comments on a post. and where do i store it?

    or am I missing something…

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

The topic ‘Create a new boolean template tag.’ is closed to new replies.