WordPress.org

Ready to get started?Download WordPress

Forums

Another WordPress Classifieds Plugin
[resolved] How do I change the order of the title attributes (12 posts)

  1. Pete
    Member
    Posted 1 year ago #

    Currently my title for an ad is like this...

    awpcp page name setting - website name - awpcp category - ad name

    I'd like it so it reads like this...
    ad name - website name - awpcp category - awpcp page name setting

    What file and line numbers would I need to alter this?

    Thanks, Pete

    http://wordpress.org/extend/plugins/another-wordpress-classifieds-plugin/

  2. awpcp
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Pete,

    Well, you can't alter the structure the way you want. AWPCP only controls everything AFTER the page name. WordPress puts the name of the page in the title automatically. We can't stop that.

    I would need to dig this up--I don't know it off hand. I'll see what I can find.

  3. awpcp
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Pete,

    My developer said to look in frontend/meta.php.

    Here's what else he added:

    That's one place where he can change the order of the title parts.

    The seplocation argumento to the wp_title[1] function also has an effect on the order in which the parts appear in the title. He may want to try changing that argument in his theme, before doing any modification to AWPCP, maybe that solves his problem.

    1. http://codex.wordpress.org/Function_Reference/wp_title

  4. Pete
    Member
    Posted 1 year ago #

    Thanks for that i'll see how i go. It's interesting that the ad title isn't first as this is generally what is recommended for good SEO. Is this worth something to consider in a future update?

  5. awpcp
    Member
    Plugin Author

    Posted 1 year ago #

    The ad title isn't the page title. Page titles go first, but since we use the page to display all ads, that's why they say "Show Ad". WordPress controls that for us, although we will look to revisit it in the future I think.

  6. sadviser
    Member
    Posted 8 months ago #

    Hi.
    Is there any way to remove the name and email fields? Or at least make the name and the email fields not required?
    Thank you.

  7. awpcp
    Member
    Plugin Author

    Posted 8 months ago #

    Hi sadviser,

    Have you checked under Classifieds->Settings, Form Field tab? The fields can be set to visible/not required there.

  8. sadviser
    Member
    Posted 8 months ago #

    Hi awpcp.
    I have checked and both the name and email fields are not there. The fields listed are Posted By, Phone, Website, Price, Country, State, Country/Village/Other and City.

  9. sadviser
    Member
    Posted 8 months ago #

    Hi again.
    Happy New Year!!
    Do you know a way I can change it in the CSS editor??
    Thanks.

  10. awpcp
    Member
    Plugin Author

    Posted 7 months ago #

    Hi sadviser,

    Sorry, I should have read your original post more carefully. You can't make email not required, ever. That field is how we send notices about the ad (renewal, expiration, editing, approval) so it's required for a reason.

    The name is used for the Contact field to display in place of the email address, so it too is required.

    Making them hidden via CSS would be a bad idea. You'd have to hack the plugin internally in a lot of places to change this behavior.

  11. sadviser
    Member
    Posted 7 months ago #

    Thank you for your reply.
    Are you able to guide me in hacking the plugin? The reason I ask is because I am building a new site for the company I work for and they are a newspaper. Their previous website had the facility to insert a classified ad and did have the name and email fields but they were not required, so all of the classified ads that have been submitted previously either don't have a name or email or both. This means I cannot enter their classified ads into this new system. If this cannot be done I will have to find another plugin to use.
    Thank you.

  12. awpcp
    Member
    Plugin Author

    Posted 7 months ago #

    Hi sadviser,

    This is not an easy hack to make, so can I make another suggestion? Use a default email address (maybe create a Gmail account for this?) that you use for all ads just so you have something in there. Probably MUCH faster than hacking at this point.

    If that doesn't work, I understand.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags