GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   wordpress question for the experts. (https://gfy.com/showthread.php?t=921681)

Angry Jew Cat - Banned for Life 08-13-2009 07:45 PM

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.

NoWhErE 08-13-2009 08:08 PM

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.

Bird 08-13-2009 10:56 PM

Quote:

Originally Posted by NoWhErE (Post 16182359)
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...

harvey 08-14-2009 02:24 AM

Quote:

Originally Posted by NoWhErE (Post 16182359)
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%

fris 08-14-2009 04:59 AM

Quote:

Originally Posted by Angry Jew Cat (Post 16182304)
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.

Angry Jew Cat - Banned for Life 08-14-2009 09:16 AM

Quote:

Originally Posted by fris (Post 16183260)
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.

fris 08-14-2009 09:26 AM

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

Jdoughs 08-14-2009 09:26 AM

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.

harvey 08-14-2009 01:38 PM

Quote:

Originally Posted by Angry Jew Cat (Post 16184254)
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

grumpy 08-14-2009 01:52 PM

this is what i call expert advice :)




Quote:

Originally Posted by harvey (Post 16185307)
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


harvey 08-14-2009 02:49 PM

Quote:

Originally Posted by grumpy (Post 16185348)
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 :)


All times are GMT -7. The time now is 06:39 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123