Support » Plugin: Custom Content Shortcode » A new way to develop

  • Hi,

    Great plugin with an awesome documentation. It seems we can do everything.

    Nothing is perfect, I have found a little bug which costed me 2 hours for a stupid thing : maybe you can add a stop function when displaying the excerpt. Let me explain my very particular case.

    I have created a post, without any information than the custom content shortcode i was writting and the title (in order to have a live preview). And, after few minutes, the plugin seemt unable to understood a request, leading to a 500 error.

    I was disappointed, cause the code was ok. But I have found the little issue, related to the excerpt field. If we read your documentation, here’s the definition :

    “excerpt – post excerpt; if excerpt doesn’t exist, it will display post content with words=25. Excerpts are unformatted, and HTML tags are stripped. See also the words and length parameter for the content shortcode.”

    Well, in my case, this parameter wasn’t working because… the post I was working on was in the same categories/taxonomies as my sort shortcode, and he had, as said previously, no centent and no excerpt. A little tweek to avoid this will be to say to the plugin : if excerpt doesn’t exist, it will display post content with words=25, IF both the content and excerpt doesn’t exist, ignore this element”

  • The topic ‘A new way to develop’ is closed to new replies.