• Goodmorning everyone.
    In response to this string [pdb_list filter = “workshop = Pixalab” filter = “date_recorded = current_day” list_limit = 1], I would like to get only 1 record and delete the additional pages / instances. How can I do? I enclose screenshots. Thank you all

    Link

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Roland Barker

    (@xnau)

    You have several errors in your shortcode, so that could be causing your problems. You are taking the correct approach, so fixing those errors should get it working like you want.

    First, don’t put spaces around the “=” the shortcode uses the spaces to split up the different atttributes, so that will cause it to split them up wrong.

    Second, you can only have one “filter” attribute, but you can combine filters into that one attribute. Take a look at this article:

    List Shortcode Filters

    Thread Starter pixalab

    (@pixalab)

    Thanks for the reply.
    In fact, the code that I had copied as an example was not correct, but the one inserted in the page is ok (so without spaces).

    The problem, however, is that I would like to only visualize a result [list_limit = 1] but I would not like to show that there are other results (eliminating the part I reported in the image). So, from a series of registered contacts, I would like to display only the last recorded with a name. How can I do? Thank you all

    Plugin Author Roland Barker

    (@xnau)

    It’s important to post the exact shortcode you are using because it’s hard to diagnose problems otherwise. Syntax errors are a common problem with shortcodes, so it’s necessary to know whether that is the problem or not that when offering help.

    The list_limit=1 will limit the results to one record. To show the last one, you just need to sort the list so that the first result is the one you want to show.

    Sorting is accomplished with two attributes, “orderby” and “order” for instance:

    [pdb_list orderby=last_name order=desc]

    That will order the list so that the last record in an alphabetized list will be the first entry.

    Thread Starter pixalab

    (@pixalab)

    Thank you for your suggestion. The exact code posted in the example is [pdb_list filter=”officina=Pixalab” filter=”date_recorded=current_day” list_limit=1], but my “problem” is that I would like to delete or not show all the part I have reported in image linked below. I would like only 1 result to appear, without all the underlying part. Thanks to the availability.

    Images with “problem”

    Plugin Author Roland Barker

    (@xnau)

    I get it. There are two ways to do this, one is to use a custom template (if you’re familiar with php) you can set it up to not show the pagination control.

    Another approach would be to just hide the pagination control with some CSS (put it into the “custom CSS” plugin setting), like this:

    .pdb-pagination {
    display:none;
    }

    The problem with this is that all of your Participants Database lists won’t show the pagination, so if you need it in some cases, but not in others, the custom template is a better way to go.

    Thread Starter pixalab

    (@pixalab)

    SUPER thanks for the response.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘How to Remove Istance’ is closed to new replies.