OnPoint Plugins

  • Plugins
    • Advanced Sidebar Menu
    • Go Live Update Urls
  • About
    • Services
    • Showcase
  • Blog
  • Contact
  • Support
  • Log In
← Back to support

Multiple lists on same page

Resolved

Requested: 2 years and 8 months ago

I have lots of links that I want to show up on a single page and, ideally, I would like each grouping to be in an accordian module (I am using Divi) so the user will see all of the category titles and they can expand the groupings based on their interest.  I started simple and added the first group into a text module, but when I went to add the second group into another module, the puzzle icon did not show up.  Is there a limitation on how many simple list shortcodes I can have on one page?

—Andrew

Plugin: Simple Links

  1. akonsta

    2 years and 8 months ago

    It turns out the problem only occurs in the Visual Builder.  Sorry to bother you.

  2. OnPoint Plugins

    2 years and 8 months ago

    Hi Andrew,

    There is no limit to how many short-codes may be displayed on a page. However, sometime plugins which load the WP editor inside their own modules will sometimes not include the necessary filters to load the short-code form. In those cases you are still able to enter the short-codes manually without using the form.

    Have a great weekend!

    Mat Lipe

  3. akonsta

    2 years and 8 months ago

    Hi Mat, thanks for the quick response and again, my apologies for not checking everything before sending my request for help.

    Is there a way I can get access to the unique id associated with each link record?  What I would like to do is use the links stored in Simple Links to populate links elsewhere in my site, that way, I only have to change them in one place.  It would be great if there was a column with that number.  I would then write my own shortcode to grab the data and format the link.  Is this something you think can be done by a third party (me) without a deep understanding of your code or, more importantly, without breaking any functionality of Simple Links Pro?

    —Andrew
  4. OnPoint Plugins

    2 years and 8 months ago

    Hi Andrew,

    Because simple links are custom post types you may retrieve the ids the same way as post ids. Here is a great article on how to do so.

    To add a column to the links list which displays this id you may add the following code to your active theme’s functions.php file.

    add_filter( 'manage_simple_link_posts_columns', 'post_id_column', 100 );
    function post_id_column( $columns) {
       $columns['ID'] = 'ID';
    
       return $columns;
    }
    
    add_filter( 'manage_simple_link_posts_custom_column', 'post_id_column_output', 0, 2 );
    function post_id_column_output( $column, $post_id ) {
       if ( 'ID' === $column ) {
          echo esc_html( $post_id );
       }
    }

    Have a great weekend!

    Mat Lipe

New Response Cancel reply

You must be logged in to respond. Only PRO members are allowed to respond to support requests.

© 2021 OnPoint Plugins · WordPress Development · Privacy Policy · Terms Of Service · Log in

  • Plugins
  • Blog
  • Contact