gdkob_list_faqs

Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

This shortcode is used to display a list of FAQ.

Attributes

Shortcode has several attributes:

  • class: additional CSS class name to add
  • category: one or more categories to filter entries.
  • type: content type to show: ‘all’, ‘video’, ‘nonvideo’.
  • sort_column: the column for sorting articles. The default is ‘name’.
  • sort_order: articles sorting order. The default is ‘ASC’.
  • limit: number of articles per category limit. The default is 4.
  • product: ID of the product to limit the list.
  • bgcolor: background colour for the list. The default is ‘#F4F4F4’.

Articles Sort Column

Sort column supports following values:

  • name: article name
  • ID: article ID
  • date: article publish date
  • comment_count: article comments count
  • rand: random sort
  • none: no sorting

Example

Shortcode:

[gdkob_list_faqs sort_column="rand" sort_order="ASC" type="all" limit="4"]

Output:

Why plugin’s JavaScript files are not loaded?

All Dev4Press plugins and addons require jQuery. However, they will work only if the jQuery is loaded with WordPress’s proper Enqueue method. If you are replacing jQuery that comes with WordPress with some other version loaded from another location, my plugins will not function properly, and that goes the same for most of the other WordPress plugins that depend on the proper way for loading jQuery.

Rate this FAQ answer
1
0
357006

You are not allowed to rate this post.

Can I translate plugin to my language?

Yes. POT file is provided as a base for translation in the root folder for each plugin. Translation files should go into languages directory, and WordPress must be set to your language to load the file. As an alternative, translation file can go into wp-content/languages/plugins directory.

The file name for translated and compiled MO file must be the same as POT file with the addition of language code: {plugin-name}-{language-code}.mo.

You can check out this for translating plugins using POEdit program:
support.dev4press.com/kb/article/translating-plugins-or-themes-using-poedit

Rate this FAQ answer
8
0
400472

You are not allowed to rate this post.

Rate this reference
0
0
3243

You are not allowed to rate this post.

Leave a Comment

0
0
0
0
0
0
0
0
0