Blog Carousel Attributes
- category__in – Choose the categories you want to use in the carousel (ID). Doesn`t include child categories
- tag__in – Choose the tags you want to use in the carousel (ID). Doesn`t include child tags
- author__in – Choose the authors you want to use in the carousel (ID).
- post__in – The specific posts you want to display (in format 52, 45, 87)
- count – Number of posts in whole slider. (default 10)
- post_in_slide – Set number of posts to be shown in one slide (default 3)
- columns – Columns count (default 12)
- order – Post order (default desc)
- asc – Ascendant
- desc – Descendant
- orderby – Order posts by these parameters (default date). For more info please follow this link
- date
- none
- ID
- date
- author
- title
- modified
- parent
- rand
- comment_count
- most_liked
- most_visited
- type – Blog type (default classical)
- classical
- special
- special-gallery
- vertical
- vertical-big
- vertical-small
- mix
- letter_excerpt_title – Number of characters for post titles (default 60)
- letter_excerpt – Number of characters for preview content (default 300)
- sticky_posts – Use your sticky posts (default 0)
- 1 – On
- 0 – Off
- blog_metadate – Show date in a post preview (default 1)
- 1 – On
- 0 – Off
- blog_meta_author – Show author name in a post preview (default 0)
- 1 – On
- 0 – Off
- blog_comments_count – Show comments count in a post preview (default 1)
- 1 – On
- 0 – Off
- blog_meta_category – Show category in a post preview (default 0)
- 1 – On
- 0 – Off
- blog_meta_like – Show likes in a post preview (default 0)
- 1 – On
- 0 – Off
- blog_ratings – Show rating in a post preview (default 0)
- 1 – On
- 0 – Off
- blog_readers – Show in a post preview (default 0)
- 1 – On
- 0 – Off
- blog_featured_post – If the post is Sticky, in meta will be shown “Featured post” (default 1)
- 1 – On
- 0 – Off
- blog_category_inimage – Show category in an image (default 1)
- 1 – On
- 0 – Off
- blog_comments_inimage – Show comments in an image (default 1)
- 1 – On
- 0 – Off
- automatic_slide – Decide whether or not to allow moving a content of your carousel automatically (default 0)
- 1 – On
- 0 – Off
- clickable_image – Make post images clickable (default 2)
- 0 – Off
- 1 – Hyperlink
- 2 – PrettyPhoto
Blog Carousel Appearance
Blog Carousel with default settings
Actions jaw_before_usermanagement and jaw_after_usermanageme...
This action is used above/below MyNews User manager page. Changable avatar. Firstly install this plugin: https://wordpress.org/plugins/wp-user-avatar/ function my_change_avatar(){ echo '<div class="change-avatar">'; echo do_shortcode('[avatar_upload]'); echo '</div>'; } add_action('jaw_b...
- December 8, 2016
- 0 comments
How to add more Widget areas to menu.
You’ll have to change code of a JaW Menu plugin. Please open plugins\jaw-menu-gdaynews\menu\JawMenu.class.php between lines 17 – 22 $_widgets_area = array( 'widget-menu-area-1' => 'Widget menu area 1', 'widget-menu-area-2' => 'Widget menu area 2', 'widget-menu-area-3' => 'Widget...
- November 10, 2016
- 0 comments
Filter jaw_get_template_part
GDN version 2.1+ This filter is used in every template. You can change HTML output. function my_get_template_part( $html, $tmpl_name, $dir){ $html = ""; if($tmpl_name == "related-post" && $dir == "blog"){ jaw_template_set_var('box_title', esc_html__('Related Posts', "gdn-theme")); echo jaw_g...
- October 31, 2016
- 0 comments
How to set Custom Stock Ticker
1. Install and Activate “Custom Stock Ticker” plugin 2. Go to Relevad Plugins -> New Ticker 3.1. Name your Stock Ticker 3.2. Choose Classic template and click “Apply” 3.3. Set the settings like on this image 3.4. Add Stocks 3.5. Save Changes 3.6. Copy shortcode to your cli...
- October 18, 2016
- 0 comments
How to set Custom Stock Widget
1. Install and Activate “Custom Stock Widget” plugin 2. Go to Relevad Plugins -> New Widget 3.1. Name your Stock Widget 3.2. Choose Minimal template and click “Apply” 3.3. Set the settings like on this image 3.4. Add Stocks 3.5. Save Changes 3.6. Copy shortcode to your cli...
- October 18, 2016
- 0 comments
Action jaw_postbox_X
This action is used for content of post boxes. function my_init(){ remove_action("jaw_postbox_vertical", array("jwRender", "postboxMeta"), 15, 1); add_action("jaw_postbox_vertical", array("jwRender", "postboxMeta"), 9, 1); } add_action('init', 'my_init', 10); The result can look like this: function ...
- October 17, 2016
- 0 comments
Conditional Shortcodes
Conditional Shortcodes Appearance [jaw_is_single]Here you can put text or some other shortcodes, which will be shown only in a single post.[/jaw_is_single] [jaw_is_archive]Here you can put text or some other shortcodes, which will be shown only in an archive.[/jaw_is_archive] [jaw_is_front_page]Here...
- October 12, 2016
- 0 comments
Filter jaw_meta_categories
GDN version 1.4+ This filter is used in Meta Category. You can change category items in meta. function my_meta_categories($categories){ foreach($categories as $key => $category){ if($category->parent > 0){ unset($categories[$key]); } } return $categories; } add_filter( 'jaw_meta_cate...
- October 3, 2016
- 0 comments
[jaw_blog_carousel category__in="" tag__in="" author__in="" post__in="" order="desc" orderby="date" count="10" post_in_slide="3" columns="12" type="classical" letter_excerpt="300" letter_excerpt_title="60" sticky_posts="0" blog_metadate="1" blog_ratings="0" blog_meta_author="0" blog_comments_count="1" blog_meta_category="0" blog_meta_like="0" blog_readers="0" blog_featured_post="1" blog_category_inimage="1" blog_comments_inimage="1" automatic_slide="0" clickable_image="2" ]
Blog Carousel with custom settings
JaW Hooks
Our customers usually want to customize their theme, so in the GDay News theme are used lots of hooks for better customization via child theme or cust...
Action jaw_before_header
This action is used in header above logo. function my_custom_header(){ echo '<img src="SOME_URL" alt="NAME_OF_IMAGE" />'; } add_action('j...
[jaw_blog_carousel category__in="58" tag__in="" author__in="" post__in="" order="asc" orderby="ID" count="2" post_in_slide="2" columns="12" type="vertical-small" letter_excerpt="150" letter_excerpt_title="30" sticky_posts="0" blog_metadate="0" blog_ratings="0" blog_meta_author="0" blog_comments_count="0" blog_meta_category="0" blog_meta_like="0" blog_readers="0" blog_featured_post="0" blog_category_inimage="0" blog_comments_inimage="0" automatic_slide="0" clickable_image="2" ]