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 - anyone know how to manipulate the "get_links" code in wordpress? (https://gfy.com/showthread.php?t=624034)

Jace 06-20-2006 05:24 PM

WORDPRESS - anyone know how to manipulate the "get_links" code in wordpress?
 
I can't find any good tutorials on the web abut it, but I know that it can be manipulated to do what I want...because here is what they are giving me on one of my themes:

Code:

<ul><?php get_links(-1, '<li>', '</li>', '', FALSE, 'name', FALSE, FALSE, -1, FALSE); ?></ul>
but the problem is that this is just outputting a list of all the links without them being under categories, just a plain list all grouped together

what are the variables for this shit?

2HousePlague 06-20-2006 05:27 PM

<?php get_links(category, 'before', 'after',
'between', show_images, 'order',
show_description,show_rating, limit,
show_updated, echo); ?>

What do you want to show specifically?





2hp

Jace 06-20-2006 05:34 PM

well, here:

check out http://www.exstasyglass.com/

check the far right side, see where it grouped all the link together? there is supposed to be categories there

scroll to the bottom of the far right sidebar, I have added the
<?php get_links_list(); ?> code there just for kicks to show people what it is doing when I add that....it is adding that little page icon to the left of "Top Friends" and fucking up the formatting

2HousePlague 06-20-2006 05:41 PM

Replace the integer ("2"), with the category ID number:

<?php get_links(2, '<span>', '</span>', '', TRUE, 'url', FALSE); ?>


2hp

Jace 06-20-2006 05:42 PM

Quote:

Originally Posted by 2HousePlague
Replace the integer ("2"), with the category ID number:

<?php get_links(2, '<span>', '</span>', '', TRUE, 'url', FALSE); ?>


2hp

should I put one of those for each category? there are 3 categories total

2HousePlague 06-20-2006 05:43 PM

Quote:

Originally Posted by Jace
should I put one of those for each category? there are 3 categories total

Yes, one per category you wish to display. Use instead of the general one above.

2hp

mrkris 06-20-2006 05:45 PM

http://codex.wordpress.org/Template_Tags

2HousePlague 06-20-2006 05:47 PM

Quote:

Originally Posted by mrkris

Or more specifically:

http://codex.wordpress.org/Template_..._Sorted_by_URL


:thumbsup

2hp

Jace 06-20-2006 05:47 PM

woot, got it man

THANKS man...you rule

mrkris 06-20-2006 05:50 PM

Quote:

Originally Posted by 2HousePlague


Or more specifically:

http://codex.wordpress.org/Template_..._Sorted_by_URL


:thumbsup

2hp

Bastage! :1orglaugh :1orglaugh :1orglaugh

2HousePlague 06-20-2006 05:51 PM

Quote:

Originally Posted by mrkris
Bastage! :1orglaugh :1orglaugh :1orglaugh

:1orglaugh :1orglaugh :1orglaugh



2hp


All times are GMT -7. The time now is 04:25 PM.

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