Autor: jpk

  • Restricted custom field access with Pods

    Example: Display the description of  videos for everyone, but optionally restrict the acces to the video. 1. define in the Pod videoliste a video custom field (video) and a YEs/NO custom field (free). 2. define a template to list the videos: videotempl (Using Shortcodes in Pods Templates) 3. Insert in functions.php the restricted_video function: 4.…

  • CSS stripes

    For a table and ul List

  • Using Shortcodes in Pods Templates

    By default including a shortcode within a Pods shortcode (nesting it within the “pods” shortcode or building a shortcode within a Pods Template or Custom Template with Magic Tags) will not work. If you need this functionality to work, you need to include the following constant in…

  • Pods, format the post_date in a template

    The „magic“ @{post_date} returns the date as defined in the wp settings. To display the date for example as „Jan 2017“ you can define in functions.php

  • Members plugin shortcodes

    members_access This  shortcode is for hiding content from particular roles and capabilities. You need to wrap your content when using this shortcode: The plugin accepts the following parameters (mixing and matching won’t work): * `role` – A single or comma-separated list of roles.* `capability` – A single or comma-separated list of capabilities.* `user_name` – A…

  • Redirect login to refering page

    Redirect after login to this page:

  • Pods, multiple sort example

    Here we sort first by the Custom Field autor and afterwards by the post date. Since autor is a Custom Field, we need the…

  • List events by date with pods

    Here the  event date is a date/time custom field – start_tag –, it can have any format since it’s still saved as a meta value as yyyy-mm-dd hh:mm:ss it’s just converted for display. I use where to select the events to list. Remarks: Here some Examples: pods output without where pods name=“ftermin“ template=“ftermintmpl“ orderby=“start_tag.meta_value“ where…

  • List events by date with pods

    Here the  event date is a date/time custom field – start_tag –, it can have any format since it’s still saved as a meta value as yyyy-mm-dd hh:mm:ss it’s just converted for display. I use where to select the events to list. Remarks: Here some Examples: pods output without where pods name=“ftermin“ template=“ftermintmpl“ orderby=“start_tag.meta_value“ where…

  • List posts of a category with Pods

    Insert in the pods statement

Top