This topic has 2 replies, 2 voices, and was last updated 10 years by hughm.

  • Author
  • #9067
     hughm
    Participant

    I am using the Blog Articles shortcode to display posts. I would like to know if this shortcode can be extended beyond the ability to show specific categories, post formats, and post types? I would like to be able to show specific posts or just one post at a time. I would also like to be able to change the excerpt length or show the entire blog post.
    Thanks a lot!

    #9136
     Abe
    Keymaster

    Hi, These are the attributes you can add and their default values:
    cat = ‘all’ – you can add categories ids separated by comma(,)
    limit = 9,
    post_types = ‘post’
    post_formats = ‘all’

    You will have make your own custom changes and redefine the shortcode function kleo_articles( $atts, $content = null ) located in wp-content/themes/sweetdate/framework/shortcodes/shortcodes.php
    You will copy that function to your sweetdate-child/functions.php and modify it there. That will override default function.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #9138
     hughm
    Participant

    Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?