WordPress Classifieds Plugin
DescriptionWith this plugin, you will be able to add a Classifieds Advertising for Personals, Auto or Business in to your wordpress blog. Installing the plugin:Click here to download the: 1) 1.3.0-g (classifieds Page in one column) 2) Extract the zip files |
3) Upload folder to your site (./wp-content/plugins/wp-classified)
4) Login to the administration and go to “admin panel/plugins” and activate the plugin
5) Go to the “Manage” tab of your WP. You have now there a new tab called “WP-Classified Admin”.
6) Go into the Manage — WpClassified –
7) Click on “Add Category”
8) Categories are the MAIN sections of your classifieds. For example, Autos For Sale
9) Now that you have a category, click on “Add List” under the Add/Edit Categories menu.
10) Create a list and then choose its parent category.
Lists are your subsections on your classifieds. For example, “Trucks” would be a list whose parent category would be “Autos For Sale.”
Unless you create lists under your categories, you won’t see a thing on your classified page.
Configure the plugin
Make sure the folder images have the correct writing permissions.
You will need to make the following folders writeable (chmod 777) :
/wp-classified/images (user images)
/wp-classified/images/topic (plugin images)
/wp-classified/images/cpcc
Uninstalling the plugin
For uninstalling deactivate the plugin in the WordPress admin menu and delete the wp-classified directory from the /wp-content/plugins/ directory and the page and tables, which are installed by the plugins with drop table in phpMyAdmin.
IMPORTANT:
I create and tested on Wordpress version 2.3.2 on default and unchanged Permalink structure.
The plugins works successfully with the latest version of wordpress 2.6.
Demo:
Upgrade Instructions
- Deactivate the plugin from your Wordpress admin panel.
- Backup Database tables *_wpClassified_* and files.
- Upload the files to your /wp-content/plugins/ folder and overwrite the existing file.
- Activate the plugin from your Wordpress admin panel.
- Please Note: in ‘Classified Options‘ page in admin interface, check that all the required fields are filled in and save!
Questions and Examples of Use
Frequently Asked Questions
For people who have the problem with Invalid argument supplied for
foreach() on line 1052 or line 731 for the older WP version
To fix this problem we have installed the plugin on different machine/environment, but we cannot reproduce it.
Mr. Derrick Eckardt have found a solution to the foreach() problem on line 1052.
The problem is caused by php 5. all you have to do is edit line 1052 and change
foreach ($array as $k => $v) {
to:
foreach ((array) $array as $k => $v) {
Found this by reading these pages by reading the comments post on the PHP documentation page for the foreach() function (http://us.php.net/foreach)
Q: Why the main site gives me the 404 or Not Found error message
This is a .htaccess 404 error message and you should update your .htaccess file in the WP root directory.
Q: I would like to put the last ads in my sidebar. is it possible?
Inside the WordPress admin ‘Design’ menu, ‘Widgets’ submenu, add the wpCalssifieds widget to your blog
where you want, then save the changes.
To support Permalink structure:
This is an example for .htaccess file to redirect to wpClassified for the people who use ‘ /%category%/%postname%/’ as permalink structure
Please open the .htaccess file in the WP root folder in your favourite editor and look for line
RewriteRule . /index.php [L]
and replace it with:
#RewriteRule . /index.php [L]
RewriteRule !classified/ /index.php [L]
RewriteRule ^classified/([^/\(\)]*)/?([^/\(\)]*)/?([^/\(\)]*)/?([^/\(\)]*)/?([^/\(\)]*)/? /index.php?pagename=classified [QSA,L,R,NS]
Q: Warning: imageftbbox() [function.imageftbbox]: Could not read font?
Enable the GD and FreeType Support in php configuration or unselect the ‘Show the confirmation code’ in admin interface
Changelog
Changes 1.3.0-a - October 13/10/2008
- Modify to expanded and collapses the Categories
- Modify to show the last post in footer
Changes in 1.3 - September 10/2008
- Update to display-style classified ads in one column
- Added the ad images viewer
- Allowed more images per ad
- All the pages using templates
- Added style sheet for page layout
Changes in 1.2 - August 10/2008
- Added some fields mail, phone, web
- implement the conformation code (captcha)
- added sent to his friend’s button
- included language file (The Work is Not Finished!)
- fixed some of the issues discussed and posted here’
- Tested with wordpress 2.6 and Internet Explorer, Firefox.
- Allow the guests (identify by IP-Address ) to delete/edit their ads.
Changes in 1.1 - May 12/2008
- initial version
TO-DO-List
- deleting the categories?
- comments on individual listings/ads?
- implement the paid service and pay pal options?
- moderate and approve the ads?
- preventing the Bad languages
- Email: wpclassified@forgani.com
(Please include wpclassified in the subject of your email.)

A huge thank you to Derrick for the solution to the foreach() problem. ;-))
I found a solution to the foreach() problem on line 1052.
The problem is caused by php 5. all you have to do is edit line 1052 and change
foreach ($array as $k => $v) {
to:
foreach ((array) $array as $k => $v) {
Found this by reading these pages by reading the comments post on the PHP documentation page for the foreach() function (http://us.php.net/foreach)
I see in the documentation that there is supposed to be some kind of widget that will show the most recent classifieds in the sidebar, but I’m unable to find it anywhere. Can anyone help me out here? Also, is there a way to set the size of the classified as it will appear through the widget?
Using WP Classified 1.3.0 on WordPress 2.6.3
Great. Amazing. Can see , after follow your fine instruction - the classified on my header , even the small 486x Google ad , :-) but how I write or add classified or how someone else could ad ads or what ever?
Thanks and regards from Thailand
Nice Plugin. For SEO (search engine optimization) purpose, please make the title of each page of ads is similar with the title of the ads itself. Please give more detail information on rewrite, how to change htaccess if I installed the wp in subdirectory (say /ads/ ) and what option should I choose in permalink setting. Thank-you
is it possible to hardcode in template 5 latest ads without using widget?
@hoz, ut last 5 ads in my themes sidebar? Yes, You can configure your sidebar by going to Design > Widgets and select the wpclassifieds (if your theme is widget enabled).
Do you have any idea when there will be a pay option available? Would you consider using authorize.net or a similar service instead of or in addition to paypal? Thanks!
Sorry, I see there are duplicate lines in the htaccess. I changed it to this, could you please advise?
——————————-
AddHandler php5-script .php
# BEGIN WPSuperCache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
AddDefaultCharset UTF-8
RewriteCond %{REQUEST_URI} !^.*[^/]$
RewriteCond %{REQUEST_URI} !^.*//.*$
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress