{"id":350,"date":"2016-01-16T21:05:31","date_gmt":"2016-01-16T21:05:31","guid":{"rendered":"http:\/\/buddydev.com\/mediapress\/?p=350"},"modified":"2016-01-16T21:05:31","modified_gmt":"2016-01-16T21:05:31","slug":"mpp_gallery_html_attributes","status":"publish","type":"post","link":"https:\/\/buddydev.com\/mediapress\/gallery-template-tags\/mpp_gallery_html_attributes\/","title":{"rendered":"mpp_gallery_html_attributes"},"content":{"rendered":"<h3>mpp_gallery_html_attributes( $args = null )<\/h3>\n<p>Prints the attributes\u00a0which should be used with an anchor linking to gallery permalink. Helps us to add extra attributes\u00a0using filters.<\/p>\n<h3>Usage<\/h3>\n<pre class=\"lang:default decode:true\">&lt;a href=\"&lt;?php mpp_gallery_permalink() ;?&gt;\" &lt;?php mpp_gallery_html_attributes( array( 'class' =&gt; 'mpp-item-thumbnail mpp-gallery-cover' ) ); ?&gt;&gt;\r\n\t&lt;img src=\"&lt;?php mpp_gallery_cover_src( 'thumbnail' ) ;?&gt;\" alt =\"&lt;?php echo esc_attr( mpp_get_gallery_title() );?&gt;\" \/&gt;\r\n&lt;\/a&gt;<\/pre>\n<h3>Parameters<\/h3>\n<p>$args (array) (optional) &#8211; A list of parameters as descried below. All are optional.<\/p>\n<ul>\n<li>class (string) &#8211; one or more css classes<\/li>\n<li>id (string) &#8211; css id<\/li>\n<li>title (string) &#8211; Link title attribute<\/li>\n<li>data-mpp-context (string) &#8211; context of display. D not use it if you don&#8217;t understand the contexts of gallery.<\/li>\n<li>gallery(int) &#8211; Id of the gallery<\/li>\n<\/ul>\n<h3>Returns<\/h3>\n<p>It does not return any value.<\/p>\n<h3>Note:-<\/h3>\n<p>See <a href=\"https:\/\/buddydev.com\/mediapress\/topics\/api-guides\/mediapress-gallery-loop\/\">MediaPress gallery loop<\/a> on how to use it.<\/p>\n<h3>Changelog<\/h3>\n<ul>\n<li>Since 1.0.0<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>mpp_gallery_html_attributes( $args = null ) Prints the attributes\u00a0which should be used with an anchor linking to gallery permalink. Helps us to add extra attributes\u00a0using filters. Usage &lt;a href=&#8221;&lt;?php mpp_gallery_permalink() ;?&gt;&#8221; &lt;?php mpp_gallery_html_attributes( array( &#8216;class&#8217; =&gt; &#8216;mpp-item-thumbnail mpp-gallery-cover&#8217; ) ); ?&gt;&gt; &lt;img src=&#8221;&lt;?php mpp_gallery_cover_src( &#8216;thumbnail&#8217; ) ;?&gt;&#8221; alt =&#8221;&lt;?php echo esc_attr( mpp_get_gallery_title() );?&gt;&#8221; \/&gt; &lt;\/a&gt; Parameters &#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8208],"tags":[],"class_list":["clearfix","post-350","post","type-post","status-publish","format-standard","hentry","category-gallery-template-tags"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>mpp_gallery_html_attributes &#8226; MediaPress | BuddyDev<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/buddydev.com\/mediapress\/gallery-template-tags\/mpp_gallery_html_attributes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"mpp_gallery_html_attributes &#8226; MediaPress | BuddyDev\" \/>\n<meta property=\"og:description\" content=\"mpp_gallery_html_attributes( $args = null ) Prints the attributes\u00a0which should be used with an anchor linking to gallery permalink. Helps us to add extra attributes\u00a0using filters. Usage &lt;a href=&quot;&lt;?php mpp_gallery_permalink() ;?&gt;&quot; &lt;?php mpp_gallery_html_attributes( array( &#039;class&#039; =&gt; &#039;mpp-item-thumbnail mpp-gallery-cover&#039; ) ); ?&gt;&gt; &lt;img src=&quot;&lt;?php mpp_gallery_cover_src( &#039;thumbnail&#039; ) ;?&gt;&quot; alt =&quot;&lt;?php echo esc_attr( mpp_get_gallery_title() );?&gt;&quot; \/&gt; &lt;\/a&gt; Parameters ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/buddydev.com\/mediapress\/gallery-template-tags\/mpp_gallery_html_attributes\/\" \/>\n<meta property=\"og:site_name\" content=\"MediaPress | BuddyDev\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/bpdev\" \/>\n<meta property=\"article:published_time\" content=\"2016-01-16T21:05:31+00:00\" \/>\n<meta name=\"author\" content=\"Brajesh Singh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@sbrajesh\" \/>\n<meta name=\"twitter:site\" content=\"@buddydev\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Brajesh Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/buddydev.com\/mediapress\/gallery-template-tags\/mpp_gallery_html_attributes\/\",\"url\":\"https:\/\/buddydev.com\/mediapress\/gallery-template-tags\/mpp_gallery_html_attributes\/\",\"name\":\"mpp_gallery_html_attributes &#8226; MediaPress | BuddyDev\",\"isPartOf\":{\"@id\":\"https:\/\/buddydev.com\/mediapress\/#website\"},\"datePublished\":\"2016-01-16T21:05:31+00:00\",\"author\":{\"@id\":\"https:\/\/buddydev.com\/mediapress\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb\"},\"breadcrumb\":{\"@id\":\"https:\/\/buddydev.com\/mediapress\/gallery-template-tags\/mpp_gallery_html_attributes\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/buddydev.com\/mediapress\/gallery-template-tags\/mpp_gallery_html_attributes\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/buddydev.com\/mediapress\/gallery-template-tags\/mpp_gallery_html_attributes\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/buddydev.com\/mediapress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"mpp_gallery_html_attributes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/buddydev.com\/mediapress\/#website\",\"url\":\"https:\/\/buddydev.com\/mediapress\/\",\"name\":\"MediaPress | BuddyDev\",\"description\":\"The Best Media Gallery Plugin For BuddyPress\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/buddydev.com\/mediapress\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/buddydev.com\/mediapress\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb\",\"name\":\"Brajesh Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/buddydev.com\/mediapress\/#\/schema\/person\/image\/\",\"url\":\"\/\/www.gravatar.com\/avatar\/2106622ee90d53d15ac1402806616aca?s=96&#038;r=g&#038;d=identicon\",\"contentUrl\":\"\/\/www.gravatar.com\/avatar\/2106622ee90d53d15ac1402806616aca?s=96&#038;r=g&#038;d=identicon\",\"caption\":\"Brajesh Singh\"},\"sameAs\":[\"http:\/\/buddydev.com\/members\/sbrajesh\/\",\"https:\/\/x.com\/sbrajesh\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"mpp_gallery_html_attributes &#8226; MediaPress | BuddyDev","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/buddydev.com\/mediapress\/gallery-template-tags\/mpp_gallery_html_attributes\/","og_locale":"en_US","og_type":"article","og_title":"mpp_gallery_html_attributes &#8226; MediaPress | BuddyDev","og_description":"mpp_gallery_html_attributes( $args = null ) Prints the attributes\u00a0which should be used with an anchor linking to gallery permalink. Helps us to add extra attributes\u00a0using filters. Usage &lt;a href=\"&lt;?php mpp_gallery_permalink() ;?&gt;\" &lt;?php mpp_gallery_html_attributes( array( 'class' =&gt; 'mpp-item-thumbnail mpp-gallery-cover' ) ); ?&gt;&gt; &lt;img src=\"&lt;?php mpp_gallery_cover_src( 'thumbnail' ) ;?&gt;\" alt =\"&lt;?php echo esc_attr( mpp_get_gallery_title() );?&gt;\" \/&gt; &lt;\/a&gt; Parameters ...","og_url":"https:\/\/buddydev.com\/mediapress\/gallery-template-tags\/mpp_gallery_html_attributes\/","og_site_name":"MediaPress | BuddyDev","article_publisher":"https:\/\/www.facebook.com\/bpdev","article_published_time":"2016-01-16T21:05:31+00:00","author":"Brajesh Singh","twitter_card":"summary_large_image","twitter_creator":"@sbrajesh","twitter_site":"@buddydev","twitter_misc":{"Written by":"Brajesh Singh","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/buddydev.com\/mediapress\/gallery-template-tags\/mpp_gallery_html_attributes\/","url":"https:\/\/buddydev.com\/mediapress\/gallery-template-tags\/mpp_gallery_html_attributes\/","name":"mpp_gallery_html_attributes &#8226; MediaPress | BuddyDev","isPartOf":{"@id":"https:\/\/buddydev.com\/mediapress\/#website"},"datePublished":"2016-01-16T21:05:31+00:00","author":{"@id":"https:\/\/buddydev.com\/mediapress\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb"},"breadcrumb":{"@id":"https:\/\/buddydev.com\/mediapress\/gallery-template-tags\/mpp_gallery_html_attributes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/buddydev.com\/mediapress\/gallery-template-tags\/mpp_gallery_html_attributes\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/buddydev.com\/mediapress\/gallery-template-tags\/mpp_gallery_html_attributes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/buddydev.com\/mediapress\/"},{"@type":"ListItem","position":2,"name":"mpp_gallery_html_attributes"}]},{"@type":"WebSite","@id":"https:\/\/buddydev.com\/mediapress\/#website","url":"https:\/\/buddydev.com\/mediapress\/","name":"MediaPress | BuddyDev","description":"The Best Media Gallery Plugin For BuddyPress","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/buddydev.com\/mediapress\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/buddydev.com\/mediapress\/#\/schema\/person\/4ebf5f3e519f8cbddc6583e182dbe4fb","name":"Brajesh Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/buddydev.com\/mediapress\/#\/schema\/person\/image\/","url":"\/\/www.gravatar.com\/avatar\/2106622ee90d53d15ac1402806616aca?s=96&#038;r=g&#038;d=identicon","contentUrl":"\/\/www.gravatar.com\/avatar\/2106622ee90d53d15ac1402806616aca?s=96&#038;r=g&#038;d=identicon","caption":"Brajesh Singh"},"sameAs":["http:\/\/buddydev.com\/members\/sbrajesh\/","https:\/\/x.com\/sbrajesh"]}]}},"_links":{"self":[{"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/posts\/350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/comments?post=350"}],"version-history":[{"count":1,"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/posts\/350\/revisions"}],"predecessor-version":[{"id":351,"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/posts\/350\/revisions\/351"}],"wp:attachment":[{"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/media?parent=350"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/categories?post=350"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buddydev.com\/mediapress\/wp-json\/wp\/v2\/tags?post=350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}