Results 1 to 7 of 7

Thread: Classipress for Tutor Site

  1. #1
    Thread Starter
    Rookie
    Not a Verified Customer
    sven52's Avatar
    Join Date
    Jun 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Classipress for Tutor Site

    Hi, want to build a website for Tutors. Is it possible to implement a separate textfield or something like that only for admins to write inside if the tutor is certified?
    Thank you for your help.

  2. #2
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Classipress for Tutor Site

    Yes, you can create a custom field within WordPress to easily do this on each ad. It will not be displayed to anyone (assuming you've got permissions setup correctly) except those who have admin access to your site.

    Here's an older post about it but basically explains how to add a custom field to WordPress.

  3. #3
    Thread Starter
    Rookie
    Not a Verified Customer
    sven52's Avatar
    Join Date
    Jun 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Classipress for Tutor Site

    Thank you for your answer, but you misunterstood me. Thatīs because of my english. Sorry.
    I need a field that is shown on the website but not editable by the creator of the classified ad.

  4. #4
    Member collegism's Avatar
    Join Date
    Apr 2009
    Location
    Minneapolis, MN
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Classipress for Tutor Site

    Great question, anyone know the answer?

  5. #5
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Classipress for Tutor Site

    It's pretty easy to do actually. Just create a new custom field like the article above explains like so.

    1) Go to any ad you have and edit it.
    2) Scroll down to the custom fields section and click on the "Enter new" link. Create a new custom field called "color_option".
    3) Put a value in for this custom field like "blue".
    4) Click the "Add Custom Field" button.
    5) Save your ad.
    6) Now we'll need to write some code to display this on the actual ad page.

    [attachment=1:lqer4sbl]custom-field.gif[/attachment:lqer4sbl]

    Just paste in the following line of code on single.php within the WP loop:
    Code:
    <?php _e('Color','cp'); ?>: <?php echo get_post_meta($post->ID, "color_option", true); ?>
    That will print out the custom field value if it exists.

    Assuming you did this correctly you'll then see something like "Color: blue" on that ad.

    If you want to add a value for other ads, you'll need to edit each ad and instead of creating a new custom field each time, you'll just select the "Color_Option" value from the dropdown and then just type in a new value (blue, green, red, etc).

    [attachment=0:lqer4sbl]custom-field2.gif[/attachment:lqer4sbl]

  6. #6
    Thread Starter
    Rookie
    Not a Verified Customer
    sven52's Avatar
    Join Date
    Jun 2009
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Classipress for Tutor Site

    Thank you very much for your great tutorial. Is it possible to create / show an extra field on the profile page of the creator of the classified. Thanks in advance.

  7. #7
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Classipress for Tutor Site

    Profile custom fields are a little more tricky and you'll need a plugin to do this since it's not built into wordpress. I think there's one called User Fields or something that you could try out.

    Quote Originally Posted by sven52
    Thank you very much for your great tutorial. Is it possible to create / show an extra field on the profile page of the creator of the classified. Thanks in advance.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. My ClassiPress site
    By Cyrus in forum Showcase & Feedback
    Replies: 13
    Last Post: October 28th, 2011, 10:26 AM
  2. Which is the best Classipress site sofar ?
    By bastian in forum ClassiPress General Discussion
    Replies: 10
    Last Post: June 22nd, 2011, 09:19 AM