WORDPRESS - anyone know how to manipulate the "get_links" code in wordpress?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jace
    FBOP Class Of 2013
    • Jan 2004
    • 35562

    #1

    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
    CURATOR
    • Jul 2004
    • 14572

    #2
    <?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
    tada!

    Comment

    • Jace
      FBOP Class Of 2013
      • Jan 2004
      • 35562

      #3
      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

      Comment

      • 2HousePlague
        CURATOR
        • Jul 2004
        • 14572

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

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



        2hp
        tada!

        Comment

        • Jace
          FBOP Class Of 2013
          • Jan 2004
          • 35562

          #5
          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

          Comment

          • 2HousePlague
            CURATOR
            • Jul 2004
            • 14572

            #6
            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
            tada!

            Comment

            • mrkris
              Confirmed User
              • May 2005
              • 2737

              #7
              http://codex.wordpress.org/Template_Tags

              PHP-MySQL-Rails | ICQ: 342500546

              Comment

              • 2HousePlague
                CURATOR
                • Jul 2004
                • 14572

                #8


                2hp
                tada!

                Comment

                • Jace
                  FBOP Class Of 2013
                  • Jan 2004
                  • 35562

                  #9
                  woot, got it man

                  THANKS man...you rule

                  Comment

                  • mrkris
                    Confirmed User
                    • May 2005
                    • 2737

                    #10
                    Originally posted by 2HousePlague
                    Bastage!

                    PHP-MySQL-Rails | ICQ: 342500546

                    Comment

                    • 2HousePlague
                      CURATOR
                      • Jul 2004
                      • 14572

                      #11
                      Originally posted by mrkris
                      Bastage!




                      2hp
                      tada!

                      Comment

                      Working...