Support » Plugin: Pods - Custom Content Types and Fields » Pods Template list issue

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @agentorange76

    Well need to see more of your template in order to help you.

    Cheers, Jory

    Thread Starter agentorange76

    (@agentorange76)

    Hi Jory
    Please see below for screenshots.

    Here is the template set up
    Screenshot1
    Screenshot2

    The result is this. The problem is there are 23 categories. But a few are not showing and many are repeating.
    Screenshot3

    Thanks in advance.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @agentorange76

    That look fine to me, are you sure there aren’t duplicated taxonomies stored?
    Also, it’s better to use {@permalink} instead of a hardcoded URL with the slug.

    Cheers, Jory

    Thread Starter agentorange76

    (@agentorange76)

    Hi Jory
    When I use {@permalink} it links directly to the business page and not the archive page, so I had to do it this way. Can you advise on how it is set up with permalink?

    I have also changed the template to show the business genre id. As you can see the display is showing a repeated id. I am sure that they are not repeated.
    Screenshot 4

    Please advise. Thanks in advance.

    Thread Starter agentorange76

    (@agentorange76)

    On a second note, is it possible to sort the list and also not show genres with 0 count?

    Thanks again.

    Plugin Author Jory Hogeveen

    (@keraweb)

    When I use {@permalink} it links directly to the business page and not the archive page, so I had to do it this way. Can you advise on how it is set up with permalink?

    Then you are doing something wrong, the permalink should always link to the current object, so it that is linking to a page, the current object is not correct.

    I think the following is wrong:
    You are pulling businesses for good Pods, not taxonomies.
    There are multiple businesses linking to the same taxonomies.
    For each business you add the taxonomy links so since there are multiple businesses linking to the same taxonomies, you get duplicated results.

    Why not just fetching the taxonomies only and ajust the template accordingly?
    That way you can just use {@permalink}, {@name} etc. instead of the business_genre prefix.

    Cheers, Jory

    Thread Starter agentorange76

    (@agentorange76)

    Hi Jory
    The main list of Businesses For Good is a list of 25 businesses. I see why it is showing 25 now. The business genre is a taxonomy I created for different types of businesses.

    Can you advise on how I can list the business genre only? I’m moderately familiar with code but I’m unsure of the Pods set up.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @agentorange76

    You can just select the Business Genre as the Pod source and adjust your template as I said above.

    Cheers, Jory

    Thread Starter agentorange76

    (@agentorange76)

    Hi Jory
    Thank you for your help thus far. I managed to get it to list properly as I was pulling from the wrong list.

    Screenshot 5

    Can you advise on how I can sort the list and filter out those with a 0 post count?

    Plugin Author Jory Hogeveen

    (@keraweb)

    I’m not sure that is even possible with the widget.
    You could try the where clause. Something like t.count > 1?

    Cheers, Jory

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Pods Template list issue’ is closed to new replies.