|
|
|
||||
|
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. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
(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.
|
|
|
|
|
|
#2 |
|
Too lazy to set a custom title
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 |
|
|
|
|
|
#3 |
|
Confirmed User
Join Date: Jan 2005
Location: Stockton
Posts: 4,365
|
That sig cracks me up...
__________________
ICQ:268731675 |
|
|
|
|
|
#4 | |
|
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
|
Quote:
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 |
|
|
|
|
|
|
#5 |
|
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,474
|
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 |
|
|
|
|
|
#6 |
|
(felis madjewicus)
Industry Role:
Join Date: Jul 2006
Location: In Mom & Dad's Basement
Posts: 20,368
|
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. |
|
|
|
|
|
#7 |
|
Too lazy to set a custom title
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 |
|
|
|
|
|
#8 |
|
Confirmed User
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! |
|
|
|
|
|
#9 | |
|
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
|
Quote:
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> 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 |
|
|
|
|
|
|
#10 | |
|
Too lazy to set a custom title
Join Date: Jan 2002
Location: Holland
Posts: 9,870
|
this is what i call expert advice
Quote:
__________________
Don't let greediness blur your vision | You gotta let some shit slide icq - 441-456-888 |
|
|
|
|
|
|
#11 |
|
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
|
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 |
|
|
|