Solution
Once you are validated you can start adding widgets and shortcodes to show the comparisons on your WordPress site.
ComparePress Widgets
Go to Appearance > Widgets and add Compress Mobile Search and / or ComparePress Top Phones to whichever sidebar(s) you want. The settings in these should be fairly obvious but below you will see what the various options mean:
ComparePress Mobile Search
Title - This will be the Title of your Deal Search Widget
Show Mins/Texts , Show Line Rental , Show Networks , Show Data - Tick or untick these to show or hide these search options
Background Colour - Enter a hexadecimal value in here to change the background colour of the whole widget
Label Text Colour - Change the Colour of the dropdown box labels
Border Width - Enter a value (in pixels) to put around the whole widget
Border Colour - Enter a hexadecimal value in here to change the border colour of the whole widget
ComparePress Top Phones
Title - This will be the Title of your Top Phones Widget
Number of items - Enter the number of the best selling phones you want to display
Background Colour - Enter a hexadecimal value in here to change the background colour of the whole widget
Border Width - Enter a value (in pixels) to put around the whole widget
Border Colour - Enter a hexadecimal value in here to change the border colour of the whole widget
ComparePress Shortcodes
The WordPress Shortcode API (more on the API here ) allows you the end WordPress user full control of where plugins display their content whilst not having to worry about Custom Fields. With this is mind let's have a look at how ComparePress uses shortcodes...
There is currently 1 main ComparePress module which has Shortcodes set up to work via 4 different areas
Feature specific mobile phone handsets
Manufacturer specific mobile phone handsets
Date specific mobile phone handsets
Handset specific mobile phone deals
Feature specifc handsets
These can be shown using the following shortcode structure:
[showphones feature ='feature_name']
Simply replace feature_name with one of the following values:
1 megapixel camera, 2 megapixel camera, 3 megapixel camera, 5 megapixel camera, 8 megapixel camera, large megapixel, 3g, bluetooth, camera, data, designer, easy to use ,flip phone, google android, gps, hsdpa, imode, mp3, normal phone, pink, qwerty, quad band, radio, slider phone. slim, speakerphone, symbian os, swivel phone, touchscreen phone, video recording, wifi, windows os
Manufacturer specific handsets
These can be shown using the following structure:
[showphones make ='manufacturer_name']
Simply replace manufacturer_name with one of the following values:
3, acer, alcatel, apple, blackberry, google, htc, land rover, lg, motorola, nokia, o2, orange, palm, samsung, sony ericsson, swap, tmobile, vodafone
Date specific handsets
These can be shown using the following strucutre:
[showphones launchdate ='date_value']
Simply replace date_value with one of the following values:
999 - this is for phones that are coming soon
latest - this is for phones that have been released recently
Handset specific deals
This allows you to show just X number of deals for a specific handset. This can be useful if you want to set your home page to be based around 1 particular mobile phone handset or maybe you want to add the deals directly within a review.
[showphones handsetid ='handset_value']
Simply replace handset_value with one of the mobile phone names:
Sony Ericsson Satio black - This will show all Sony Ericsson Satio black deals ONLY. Note: The handsetid value has no - between words!
Handset AND Network Specific: [showphones handsetid ='htc desire' network='o2']
Handset AND Network AND Number of Deals Specific: [showphones handsetid ='htc desire' network='o2' number='6']
Note: You can change the number of deals this shortcode returns by using the following syntax:
[showphones handsetid ='handset_value' number-'X']
Was this article helpful?
yes /
no