Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1299884
    ctrlspatie
    Participant

    Hello,

    For a client I need to implement a list of references which contains the following:
    – Title
    – Short description
    – Link to the external reference

    My current thought is the following:
    1. Put the list in a post, retrieve it using:

    $references_post = get_post($id);
    $content = $references_post->post_content;

    etc.
    2. add_shortcode() & add_filter() in functions.php
    3. use the shortcode in a sidebar text-widget

    Can you please advise on this apporach, and suggest better solutions if there are.

    Best regards,

    #1300218
    Lely
    Moderator

    Hello There,

    Thanks for posting in.
    Your approach is fine and will give you total control on how you want it to appear on your sidebar.
    I also found this:https://wordpress.org/plugins/page-in-widget/. No coding needed just use a page instead. Just note that integration issues should be directed to plugin developer. Thank you for understanding.

    #1300270
    ctrlspatie
    Participant
    This reply has been marked as private.
    #1300281
    Lely
    Moderator

    You’re welcome!

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1299884 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>