<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ACF &#8211; Snippets</title>
	<atom:link href="http://wp.djtedfunke.com/tag/acf/feed/" rel="self" type="application/rss+xml" />
	<link>http://wp.djtedfunke.com</link>
	<description></description>
	<lastBuildDate>Sat, 05 Jan 2019 13:37:45 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.5</generator>

<image>
	<url>http://wp.djtedfunke.com/wp-content/uploads/2018/12/cropped-front-end_developer-2-512-32x32.png</url>
	<title>ACF &#8211; Snippets</title>
	<link>http://wp.djtedfunke.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Explode text to repeater (ACF)</title>
		<link>http://wp.djtedfunke.com/explode-text-to-repeater-acf/</link>
		
		<dc:creator><![CDATA[tadej]]></dc:creator>
		<pubDate>Sat, 05 Jan 2019 13:37:45 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[ACF]]></category>
		<guid isPermaLink="false">http://wp.djtedfunke.com/?p=146</guid>

					<description><![CDATA[Explode text by &#8220;,&#8221; and add to fields (ACF repeater) -> VIVI.si recepti:]]></description>
										<content:encoded><![CDATA[
<p>Explode text by &#8220;,&#8221; and add to fields (ACF repeater) -> VIVI.si recepti: </p>



<pre class="wp-block-code"><code>    $('#explode_recepti').click(function(){

        var items = $('#explode_recepti_textarea').val().split(',').length;
        var itemsArray = $('#explode_recepti_textarea').val().split(',');

        for(i=0;i&lt;items;i++){
            $('.acf-field-54dbe3014c9ae .acf-actions .acf-button ').click();
        }

        $('.acf-field-54dbe3014c9ae .acf-table .acf-field-text input').each(function( index , element) {
            
            $(this).val(itemsArray[index]);
        });

    });</code></pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>ACF admin columns</title>
		<link>http://wp.djtedfunke.com/acf-admin-columns/</link>
		
		<dc:creator><![CDATA[tadej]]></dc:creator>
		<pubDate>Tue, 01 Jan 2019 21:38:53 +0000</pubDate>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[ACF]]></category>
		<category><![CDATA[Admin]]></category>
		<guid isPermaLink="false">http://wp.djtedfunke.com/?p=100</guid>

					<description><![CDATA[Custom admin column from ACF field:]]></description>
										<content:encoded><![CDATA[
<p>Custom admin column from ACF field:</p>



<pre class="wp-block-code"><code>function my_page_columns($columns) {
    $columns = array(
        'cb'        => '&lt;input type="checkbox" />',
        'title'     => 'Title',
        'datum'      =>  'Datum dogodka',
        'date'      =>  'Datum objave',
    );
    return $columns;
}

function my_custom_columns($column) {
    global $post;

    if ($column == 'datum') {
        echo get_field( "datum", $post->ID );
    } else {
         echo '';
    }

}
add_action("manage_dogodki_posts_custom_column", "my_custom_columns");
add_filter("manage_dogodki_posts_columns", "my_page_columns");</code></pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>ACF choices dynamic (revolution slider)</title>
		<link>http://wp.djtedfunke.com/acf-choices-dynamic-revolution-slider/</link>
		
		<dc:creator><![CDATA[tadej]]></dc:creator>
		<pubDate>Tue, 01 Jan 2019 20:12:37 +0000</pubDate>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[ACF]]></category>
		<guid isPermaLink="false">http://wp.djtedfunke.com/?p=66</guid>

					<description><![CDATA[Get ACF choices dynamic &#8211; Revolution slider:]]></description>
										<content:encoded><![CDATA[
<p>Get ACF choices dynamic &#8211; Revolution slider:</p>



<pre class="wp-block-code"><code>function acf_load_color_field_choices( $field ) {
    // reset choices
    $field['choices'] = array();
    // get a list of all available sliders
	$my_sliders = new RevSlider();
	// grab the "alias" names of the sliders
	$my_slider_array = $my_sliders->getAllSliderAliases();
	foreach ($my_slider_array as &amp;$value) {
	    $field['choices'][ $value ] = $value;
	}

    return $field;
}

add_filter('acf/load_field/name=revolution_slider_potep', 'acf_load_color_field_choices');</code></pre>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>ACF settings page</title>
		<link>http://wp.djtedfunke.com/acf-settings-page/</link>
		
		<dc:creator><![CDATA[tadej]]></dc:creator>
		<pubDate>Tue, 01 Jan 2019 20:11:02 +0000</pubDate>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[ACF]]></category>
		<guid isPermaLink="false">http://wp.djtedfunke.com/?p=64</guid>

					<description><![CDATA[Adding ACF option admin page]]></description>
										<content:encoded><![CDATA[
<p>Adding ACF option admin page</p>



<pre class="wp-block-code"><code>if( function_exists('acf_add_options_page') ) {
    acf_add_options_page(array(
        'page_title'    => 'Page Settings',
        'menu_title'    => 'Page Settings',
        'menu_slug'     => 'theme-general-settings',
        'capability'    => 'edit_posts',
        'redirect'      => false, //true redirects to the first child!!!
        'position' => 35,
    ));
    
    acf_add_options_sub_page(array(
        'page_title'    => 'Footer',
        'menu_title'    => 'Footer',
        'parent_slug'   => 'theme-general-settings',
    ));     
}</code></pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
