• Hopefully the last problem before I can let my site go live.

    currently I list my links using this code

    <?php wp_get_linksbyname('Favorites') ?>

    Can I combine two categories into one list?

    I think the code would look something like:

    <?php wp_get_linksbyname('Favorites' || 'other') ?>

    please correct me if im wrong, or let me know if im correct

Viewing 7 replies - 1 through 7 (of 7 total)
  • I would be inclined to call two lists and then style it so they are *together*.

    Thread Starter mc82

    (@mc82)

    I would really prefer to have them mixed together according to when they were last updated.

    Have you tried get linksbyname ? Comma separated values ?

    Thread Starter mc82

    (@mc82)

    Oh, i should use commas and not ||. Ill give it a shot

    Thread Starter mc82

    (@mc82)

    I tried to sperate it with commas, but it wont work.

    Another thing i realized is that I cant seem to figure out how to inverse the way it is sorted. I tried putting _ infront of the way it should be sorted, but it doesnt work

    You need the orderby param. Its the sixth one in.

    Thread Starter mc82

    (@mc82)

    that what i meant, on the 6th parameter, I put an underscore infront of “updated” but it does not inverse the selections.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Combining two categories into one list’ is closed to new replies.