Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

Animal rescue site based on wordpress needs a bit of tweaking!

Status
Not open for further replies.
Joined
Sep 13, 2008
Posts
1,203
Reaction score
53
Hey chaps, I recently decided to create a rescue website which offers free pages to rescues, so they can upload their dog rescues quickly and easily, but I've run into something a bit too techy for me! So wondering if there's any wordpress gurus that can help out for a good cause?

Basically I'm trying to list the authors as the rescue names in a drop down which when selected goes straight to that rescues page with all their listings and contact info etc, but can't work out how to do it, so it auto loads the authors page ?

Also I wanted to exclude the admin from displaying but having trouble working that one out too?

Any help much appreciated!

The site is www.therescuesite.org.uk , it's brand new so no rescues on there yet!

Matt
 
That's a nice thing to do with the domain, Matt!

I had regged animalwelfare.org.uk when it dropped several months ago, had the same sort of thing in mind for it, not as techy as yours offering hosting and the other extras, just for listing animal rescues and animal welfare links etc, not got round to doing anything with it yet, though.
 
Is the authors drop down box a widget, hand coded or standard option on WordPress (never used it if it is)?

You should be able to remove the meta login from within the theme file (easy to do, drop me the login details if you want and I'll take a look).
 
Is the authors drop down box a widget, hand coded or standard option on WordPress (never used it if it is)?

You should be able to remove the meta login from within the theme file (easy to do, drop me the login details if you want and I'll take a look).

It's hand coded to the sidebar.php

Code:
<li id="users">
<h2>Choose a Rescue</h2>
<form action="<?php bloginfo('url'); ?>" method="get">
<?php wp_dropdown_users(array('name' => 'author','exclude_admin' => 1)); ?>
<input type="submit" name="submit" value="view" />
</form>
</li>

As you can see i've tried to exclude admin above but not working :confused:

I want the meta login to remain so rescues can login to edit/add stuff..
 
Ah I see, thought you meant get rid of admin login but I know what you mean now. I think you need to write the author user ID as a number in the exclude, not the name.

Not 100% sure as I'm not a PHP expert, but after looking here possibly the following...?

Code:
<?php wp_dropdown_users(array('name' => 'author','exclude=1')); ?>
 
Last edited:
Cheers! Got a few rescues on board already

@wb - thanks for that but still no difference, I'll just leave it there, not the end of the world!
 
Are you wanting individual authors though? From my mind you want individual posts? What if an an author does 2 or more rescues?
What I would do is list posts in a specific category (eg rescues).
Could probably knock that up for you if you wanted?
 
Are you wanting individual authors though? From my mind you want individual posts? What if an an author does 2 or more rescues?
What I would do is list posts in a specific category (eg rescues).
Could probably knock that up for you if you wanted?

Hi Jim - yes each "author" will actually be a rescue centre/etc.. so when you click on author posts it will show each rescue dog/cat/animal available from that rescue centre.
Hope that makes sense?
 
But what if a real person offers two rescues?
Or are you going to create a new author even though they are the same physical person?
 
But what if a real person offers two rescues?
Or are you going to create a new author even though they are the same physical person?

Usually people go through a rescue centre/shelter to rehome their dog, but I can add a section for private rehomings..each animal rescue will be in a new post, so if its' a pair of cats for example they'll be in one post, under private rehomings category... I'm kind of just going along and adapting the site as and when needs it.
 
Fair enough,
this will exclude admin (if you put the right number in)
PHP:
<?php wp_dropdown_users(array(exclude => 'exclude=1')); ?>
 
Status
Not open for further replies.

Rule #1: Be Respectful

Do not insult any other member. Be polite and do business. Thank you!

Premium Members

New Threads

Domain Forum Friends

Lastest Listings

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Siusaidh AcornBot:
    Siusaidh has left the room.
      Siusaidh AcornBot: Siusaidh has left the room.
      Top Bottom