Viewing 15 replies - 1 through 15 (of 38 total)
  • I’d go by creating a Page template (e.g. links.php) where I’d include the proper template tag to call my links list… then create a Page by using this template (Note: no need to write anything in the content text area!), and then just linking to it from wherever you prefer. I guess it would work.

    The drop down list is very enticing. I’ve talked to a few folks and they say that it’s possible. They are going to pick it apart and see how it would best work under WordPress. The list would have to be on a Page not a post, but we’ll see what the brilliant WordPress volunteers can come up with. Stay tuned.

    Oh, yes. Sorry, what I described above would show the list only. I didn’t pay attention to the drop-down ??

    Thread Starter fionadixit

    (@fionadixit)

    Ooh now you got me excited ??

    As a matter of interest if I do it the usuaul way (without dropdown) can the categories be displayed in header tags or are the WP tags not geared for showing the actual categories in say ‘<?php get_links_list(); ?>’

    Thanks ??

    The issue here generically stated is *How do you put php functions in a page?*. The wp-exec plugin would seem ideal.

    https://www.skippy.net/blog/links/
    is a WordPress Page using the RunPHP plugin, and it looks like this:
    <h3>skippy</h3>
    <ul class="links"><?php wp_get_linksbyname('skippy'); ?></ul>
    <h3>published works</h3>
    <ul class="links"><?php wp_get_linksbyname('published'); ?></ul>
    <h3>family</h3>
    <ul class="links"><?php wp_get_linksbyname('family'); ?></ul>
    <h3>friends</h3>
    <ul class="links">< ?php wp_get_linksbyname('friends'); ?></ul>

    Thread Starter fionadixit

    (@fionadixit)

    Ah cool Skippy ?? thanks

    To implement moshu’s solution:

    (a) Make a custom page template
    https://codex.www.ads-software.com/pages#Pages_can_use_Different_Templates

    (b) Put a call to <?php get_links_list ?> in it
    (c) Make a page using that template (as explained in the above link)

    You can use the php-exec or run-php plugins to avoid making the custom template thing. Check their documentation to see how to use them to call get_links_list (I use wp-exec at https://firasd.org/links and say <exec type="function" name="get_links_list" /> on the page.)

    I’m also making a plugin which makes the process easier, so you can alternatively just wait a bit.

    FionaDixit: I told you I was talking to some folks about this very cool suggestion of yours. You got them very excited. We’re all here to serve. ??

    Applying styles to the output is an exercise for the user:
    https://pastebin.com/280595

    Save that code as a plugin file. Create a post/page and put this comment on it (and usually nothing else) where you want the output to appear:

    <!--linksdropdown-->

    That was fast, ringmaster ??

    Thread Starter fionadixit

    (@fionadixit)

    Wow now thats what you call a fast service ??

    Thanks a bunch. Will try shortly.

    F

    WOWOWOWOW! Ringmaster, and your helpful buddies, have DONE IT AGAIN. This is a dream. Very simple, very easy. Worked right off the bat.

    Fiona: You’re gonna love this. Very wonderful.

    Ringmaster: Get this out of the bin and save it forever – enter it in the contest – wave a flag around it. It’s brilliant!

    Thread Starter fionadixit

    (@fionadixit)

    Getting excited ??

    Run into a little problem though (I say problem but it’s me being dumb!)

    I know how to create a page and I know how to create a template but when I create a template for example ‘links.php’ and assocoate it with new page it pulls in comments and I don’t know why.

    What is the simplest, meanest darnest way of doing this? ??

    What should my links.php template actuall have in it?

    Thanks

    Oh, skip trying to make a template thing. Just click ADD PAGE or WRITE PAGE and use the default template. Make it simple on yourself. Paste in the <!--linksdropdown--> with nothing else (start simple) and save the page.

    With the php saved to file and uploaded to your plugins folder, then activated, the new page “links” will show up on your list_pages() list, wherever that is, or type in the direct link to example.com/wordpress/index.php?page_id=42 or whatever it is, and look.

    Be amazed. Be dazzled. Be thrilled. Do a little dance.

    Then go back to your Admin > Edit Page and dink with it to make the page look like whatever you want. But it will now look like your default page. The rest is details.

Viewing 15 replies - 1 through 15 (of 38 total)
  • The topic ‘Link Manager main page: Can I do this?’ is closed to new replies.