Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-13-2009, 07:45 PM   #1
Angry Jew Cat - Banned for Life
(felis madjewicus)
 
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
wordpress question for the experts.

Is there any existing type of widget setups where i can display different code in a block of my menu for each associated post? Like a quick product review box? Better if it's tag based to flexibly integrate with my design.
Angry Jew Cat - Banned for Life is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-13-2009, 08:08 PM   #2
NoWhErE
Too lazy to set a custom title
 
NoWhErE's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Canada
Posts: 10,492
I think what you're talking about is Head Space.

Go to Plugins.

click on Add New

then search for Head Space.

I think that whats you're looking for.
__________________
skype: lordofthecameltoe
NoWhErE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-13-2009, 10:56 PM   #3
Bird
Confirmed User
 
Bird's Avatar
 
Join Date: Jan 2005
Location: Stockton
Posts: 4,365
Quote:
Originally Posted by NoWhErE View Post
I think what you're talking about is Head Space.

Go to Plugins.

click on Add New

then search for Head Space.

I think that whats you're looking for.
That sig cracks me up...
__________________
ICQ:268731675
Bird is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-14-2009, 02:24 AM   #4
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
Quote:
Originally Posted by NoWhErE View Post
I think what you're talking about is Head Space.

Go to Plugins.

click on Add New

then search for Head Space.

I think that whats you're looking for.
well, yes, but for what he wants he'd need to load different instances of the same plugin/widget, which would be a pin in the ass and an unnecessary load in the server and database.

I think the best and faster way would be either custom fields or customize the theme to import data via XML.

ie, I finished a couple weeks ago a shopping cart that integrates WP with a 3rd party script and it has exactly that feature (different data for each product). That was done with a couple custom fields. Now I'm working on a multi webcam portal/community that loads info with different XML parsers and renders every 3rd party stuff with the look of the site and it works amazingly well, so I bet that would be the correct approach.

This being said, I'm not sure if I understand the question 100%
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-14-2009, 04:59 AM   #5
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,474
Quote:
Originally Posted by Angry Jew Cat View Post
Is there any existing type of widget setups where i can display different code in a block of my menu for each associated post? Like a quick product review box? Better if it's tag based to flexibly integrate with my design.
Best to make a shortcode to do this.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


My Cam Feeds Script
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-14-2009, 09:16 AM   #6
Angry Jew Cat - Banned for Life
(felis madjewicus)
 
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
Quote:
Originally Posted by fris View Post
Best to make a shortcode to do this.
huh? i'm lost on that one...


what i need is to be able to include a specific piece of html for eachpost into the design, outside of the loop. like in my sidebar.

could i say, drop it into the excerpt. and in my single.php drop the_excerpt tags outside of the loop? does that work? can i create a second loop in single.php to show my extra html as the excerpt? would that work?

i want to include a little review in my sidebar for the site related to each post i make.
Angry Jew Cat - Banned for Life is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-14-2009, 09:26 AM   #7
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,474
ya you can do more than 1 loop in single.php, hit me on icq i will try and do it for you, 704-299
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


My Cam Feeds Script
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-14-2009, 09:26 AM   #8
Jdoughs
Confirmed User
 
Jdoughs's Avatar
 
Industry Role:
Join Date: Mar 2004
Location: Great White North
Posts: 5,794
I would say use custom fields like Harvey mentioned, then just call the custom fields on each post or page sidebar, or menu, wherever you want them.
__________________
LinkSpun - Premier Adult Link Trading Community - ICQ - 464/\281/\250
Be Seen By New Webmasters/Affiliates * Target out webmasters/affiliates based on niches your sites are for less than $20 a month.
AmeriNOC - Proudly hosted @ AmeriNOC!
Jdoughs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-14-2009, 01:38 PM   #9
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
Quote:
Originally Posted by Angry Jew Cat View Post
huh? i'm lost on that one...


what i need is to be able to include a specific piece of html for eachpost into the design, outside of the loop. like in my sidebar.

could i say, drop it into the excerpt. and in my single.php drop the_excerpt tags outside of the loop? does that work? can i create a second loop in single.php to show my extra html as the excerpt? would that work?

i want to include a little review in my sidebar for the site related to each post i make.

pffft, I thought you already had the content, hence the xml thing. If you still need to write it just do this: in your sidebar, include the following code

Code:
<div id="some-name"><?php echo get_post_meta($post->ID, "myreview", $single = true); ?></div>
And in your posts add a custom field called myreview with the text you want. And that's it, your problem solved in 2 easy steps (I recommend you to add a text field area for that custom code so it's easy to see what you write, you can edit functions.php or grab one of several existing plugins to do it).

PS: since you will want this only in single.php pages, be sure to either call a sidebar2.php (with the same content as sidebar.php PLUS the review) or call the review outside the sidebar code and adjust the placement of the div. I recommend you the first approach. Of course you can load the sidebar.php with conditionals (if single.php load something) but it seems to me you'll have more trouble this way
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-14-2009, 01:52 PM   #10
grumpy
Too lazy to set a custom title
 
grumpy's Avatar
 
Join Date: Jan 2002
Location: Holland
Posts: 9,870
this is what i call expert advice




Quote:
Originally Posted by harvey View Post
pffft, I thought you already had the content, hence the xml thing. If you still need to write it just do this: in your sidebar, include the following code

Code:
<div id="some-name"><?php echo get_post_meta($post->ID, "myreview", $single = true); ?></div>
And in your posts add a custom field called myreview with the text you want. And that's it, your problem solved in 2 easy steps (I recommend you to add a text field area for that custom code so it's easy to see what you write, you can edit functions.php or grab one of several existing plugins to do it).

PS: since you will want this only in single.php pages, be sure to either call a sidebar2.php (with the same content as sidebar.php PLUS the review) or call the review outside the sidebar code and adjust the placement of the div. I recommend you the first approach. Of course you can load the sidebar.php with conditionals (if single.php load something) but it seems to me you'll have more trouble this way
__________________
Don't let greediness blur your vision | You gotta let some shit slide
icq - 441-456-888
grumpy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-14-2009, 02:49 PM   #11
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
Quote:
Originally Posted by grumpy View Post
this is what i call expert advice
ha ha, far from an expert, and not even close to Fris for sure, but this was just an easy one. Thanx for the kind words anyway
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.