Support

Account

Forum Replies Created

  • Hi @Elliot,
    Thanks for your reply.
    Of course, I understand this was beyond the the use of ACF, but I thought I’d just give it a shot anyway, as I saw that use of ACF forms was mentionned on the forum & that these topics seemed remotely related …

    About breaking the subjet into separate tasks: my thoughts exactly, so I would start by asking myself how to query & test an ACF CPT field from the front end (this obviously would require that I have a frontend widget constructed, installed & declared, and this IS outside the scope 🙂 )

    Any hint on this particular task, as my starting point.

    And again many thanks for your continued interest in other people’s issues !
    regards,
    JM

  • Oups, sorry for all those typing mistakes 🙁 !

  • @Elliot,

    Sorry to disapoint you but still no change:
    If you still have my fields ‘ setup you will see that once on 2nd tab, and on change of an ‘ author’ (names in the drop down list…), ACF bounces back to the first tab, to which I made no changes to the suggested default values…

  • @Elliot,
    Oups, sorry, didn’t see I could add an attachment, so here is the xml..
    Rgds,
    JM

  • Hi @Elliot,
    Below the XML export, sorry if ther field names are in French & therefore sometimes not so explicit…:( :

    
    <?xml version="1.0" encoding="UTF-8" ?>
    <!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. -->
    <!-- It contains information about your site's posts, pages, comments, categories, and other content. -->
    <!-- You may use this file to transfer that content from one site to another. -->
    <!-- This file is not intended to serve as a complete backup of your site. -->
    
    <!-- To import this information into a WordPress site follow these steps: -->
    <!-- 1. Log in to that site as an administrator. -->
    <!-- 2. Go to Tools: Import in the WordPress admin panel. -->
    <!-- 3. Install the "WordPress" importer from the list. -->
    <!-- 4. Activate & Run Importer. -->
    <!-- 5. Upload this file using the form provided on that page. -->
    <!-- 6. You will first be asked to map the authors in this export file to users -->
    <!--    on the site. For each author, you may choose to map to an -->
    <!--    existing user on the site or to create a new user. -->
    <!-- 7. WordPress will then import each of the posts, pages, comments, categories, etc. -->
    <!--    contained in this file into your site. -->
    
    <!-- generator="WordPress/3.8" created="2014-01-07 07:22" -->
    <rss version="2.0"
    	xmlns:excerpt="http://wordpress.org/export/1.1/excerpt/"
    	xmlns:content="http://purl.org/rss/1.0/modules/wp-content/"
    	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    	xmlns:dc="http://purl.org/dc/elements/1.1/"
    	xmlns:wp="http://wordpress.org/export/1.1/"
    >
    
    <channel>
    	<title>Association pour l'Histoire du Commerce</title>
    	<link>http://localhost/AHC</link>
    	<description></description>
    	<pubDate>Tue, 07 Jan 2014 07:22:42 +0000</pubDate>
    	<language></language>
    	<wp:wxr_version>1.1</wp:wxr_version>
    	<wp:base_site_url>http://localhost/AHC</wp:base_site_url>
    	<wp:base_blog_url>http://localhost/AHC</wp:base_blog_url>
    	<wp:author><wp:author_id>1</wp:author_id><wp:author_login>admin</wp:author_login><wp:author_email>[email protected]</wp:author_email><wp:author_display_name><![CDATA[admin]]></wp:author_display_name><wp:author_first_name><![CDATA[Jean Marc]]></wp:author_first_name><wp:author_last_name><![CDATA[Brosselin]]></wp:author_last_name></wp:author>
    	<wp:author><wp:author_id>3</wp:author_id><wp:author_login>CB</wp:author_login><wp:author_email>[email protected]</wp:author_email><wp:author_display_name><![CDATA[Claude Brosselin]]></wp:author_display_name><wp:author_first_name><![CDATA[Claude]]></wp:author_first_name><wp:author_last_name><![CDATA[Brosselin]]></wp:author_last_name></wp:author>
    	<wp:author><wp:author_id>5</wp:author_id><wp:author_login>FM</wp:author_login><wp:author_email>[email protected]</wp:author_email><wp:author_display_name><![CDATA[François Malaterre]]></wp:author_display_name><wp:author_first_name><![CDATA[François]]></wp:author_first_name><wp:author_last_name><![CDATA[Malaterre]]></wp:author_last_name></wp:author>
    	<wp:author><wp:author_id>6</wp:author_id><wp:author_login>Judas Paysant</wp:author_login><wp:author_email>[email protected]</wp:author_email><wp:author_display_name><![CDATA[Judas Paysant]]></wp:author_display_name><wp:author_first_name><![CDATA[Judas]]></wp:author_first_name><wp:author_last_name><![CDATA[Paysant]]></wp:author_last_name></wp:author>
    	<item>
    		<title>Saisie des Fiches de Publications</title>
    		<link>http://localhost/AHC/?acf=acf_saisie-des-fiches-de-publications</link>
    		<pubDate>Fri, 29 Nov 2013 17:44:07 +0000</pubDate>
    		<dc:creator>admin</dc:creator>
    		<guid isPermaLink="false">http://localhost/AHC/?post_type=acf&p=167</guid>
    		<wp:post_id>167</wp:post_id>
    		<wp:post_date>2013-11-29 18:44:07</wp:post_date>
    		<wp:post_date_gmt>2013-11-29 17:44:07</wp:post_date_gmt>
    		<wp:comment_status>closed</wp:comment_status>
    		<wp:ping_status>closed</wp:ping_status>
    		<wp:post_name>acf_saisie-des-fiches-de-publications</wp:post_name>
    		<wp:status>publish</wp:status>
    		<wp:post_parent>0</wp:post_parent>
    		<wp:menu_order>0</wp:menu_order>
    		<wp:post_type>acf</wp:post_type>
    		<wp:post_password></wp:post_password>
    		<wp:postmeta>
    			<wp:meta_key>_edit_last</wp:meta_key>
    			<wp:meta_value><![CDATA[1]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>position</wp:meta_key>
    			<wp:meta_value><![CDATA[normal]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>layout</wp:meta_key>
    			<wp:meta_value><![CDATA[default]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>hide_on_screen</wp:meta_key>
    			<wp:meta_value><![CDATA[a:10:{i:0;s:11:"the_content";i:1;s:7:"excerpt";i:2;s:13:"custom_fields";i:3;s:9:"revisions";i:4;s:4:"slug";i:5;s:6:"author";i:6;s:6:"format";i:7;s:14:"featured_image";i:8;s:10:"categories";i:9;s:15:"send-trackbacks";}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5298d272b927b</wp:meta_key>
    			<wp:meta_value><![CDATA[a:14:{s:3:"key";s:19:"field_5298d272b927b";s:5:"label";s:5:"Titre";s:4:"name";s:17:"publication_titre";s:4:"type";s:4:"text";s:12:"instructions";s:0:"";s:8:"required";s:1:"1";s:13:"default_value";s:0:"";s:11:"placeholder";s:0:"";s:7:"prepend";s:0:"";s:6:"append";s:0:"";s:10:"formatting";s:4:"html";s:9:"maxlength";s:0:"";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:4:"null";s:8:"operator";s:2:"==";s:5:"value";s:0:"";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:1;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5298d2eab927d</wp:meta_key>
    			<wp:meta_value><![CDATA[a:11:{s:3:"key";s:19:"field_5298d2eab927d";s:5:"label";s:5:"Sujet";s:4:"name";s:17:"publication_sujet";s:4:"type";s:7:"wysiwyg";s:12:"instructions";s:57:"Indiquer en quelques lignes le sujet de cette publication";s:8:"required";s:1:"1";s:13:"default_value";s:0:"";s:7:"toolbar";s:4:"full";s:12:"media_upload";s:2:"no";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5298d96b297a3";s:8:"operator";s:2:"==";s:5:"value";s:28:"L'auteur est membre de l'AHC";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:2;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5298d29eb927c</wp:meta_key>
    			<wp:meta_value><![CDATA[a:8:{s:3:"key";s:19:"field_5298d29eb927c";s:5:"label";s:22:"Auteur Membre de l'AHC";s:4:"name";s:0:"";s:4:"type";s:3:"tab";s:12:"instructions";s:0:"";s:8:"required";s:1:"0";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"1";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5298d96b297a3";s:8:"operator";s:2:"==";s:5:"value";s:28:"L'auteur est membre de l'AHC";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:5;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5298d394a3a51</wp:meta_key>
    			<wp:meta_value><![CDATA[a:8:{s:3:"key";s:19:"field_5298d394a3a51";s:5:"label";s:17:"Infos Publication";s:4:"name";s:0:"";s:4:"type";s:3:"tab";s:12:"instructions";s:0:"";s:8:"required";s:1:"0";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:4:"null";s:8:"operator";s:2:"==";s:5:"value";s:0:"";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:0;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5298d58d9846a</wp:meta_key>
    			<wp:meta_value><![CDATA[a:13:{s:3:"key";s:19:"field_5298d58d9846a";s:5:"label";s:19:"Type de Publication";s:4:"name";s:16:"publication_type";s:4:"type";s:8:"taxonomy";s:12:"instructions";s:0:"";s:8:"required";s:1:"1";s:8:"taxonomy";s:16:"publication_type";s:10:"field_type";s:6:"select";s:10:"allow_null";s:1:"0";s:15:"load_save_terms";s:1:"1";s:13:"return_format";s:6:"object";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:4:"null";s:8:"operator";s:2:"==";s:5:"value";s:0:"";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:3;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5298d96b297a3</wp:meta_key>
    			<wp:meta_value><![CDATA[a:13:{s:3:"key";s:19:"field_5298d96b297a3";s:5:"label";s:31:"L'auteur est il membre de l'AHC";s:4:"name";s:22:"publication_author_ahc";s:4:"type";s:5:"radio";s:12:"instructions";s:0:"";s:8:"required";s:1:"1";s:7:"choices";a:2:{s:28:"L'auteur est membre de l'AHC";s:28:"L'auteur est membre de l'AHC";s:34:"L'auteur n'est pas membre de l'AHC";s:34:"L'auteur n'est pas membre de l'AHC";}s:12:"other_choice";s:1:"0";s:17:"save_other_choice";s:1:"0";s:13:"default_value";s:28:"L'auteur est membre de l'AHC";s:6:"layout";s:8:"vertical";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:4:"null";s:8:"operator";s:2:"==";s:5:"value";s:0:"";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:4;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5298d9e4297a4</wp:meta_key>
    			<wp:meta_value><![CDATA[a:11:{s:3:"key";s:19:"field_5298d9e4297a4";s:5:"label";s:42:"Trouver l'auteur dans la liste des membres";s:4:"name";s:21:"publication_author_id";s:4:"type";s:9:"page_link";s:12:"instructions";s:0:"";s:8:"required";s:1:"1";s:9:"post_type";a:1:{i:0;s:6:"member";}s:10:"allow_null";s:1:"0";s:8:"multiple";s:1:"0";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"1";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5298d96b297a3";s:8:"operator";s:2:"==";s:5:"value";s:28:"L'auteur est membre de l'AHC";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:6;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5299a58668e7a</wp:meta_key>
    			<wp:meta_value><![CDATA[a:10:{s:3:"key";s:19:"field_5299a58668e7a";s:5:"label";s:77:"L'auteur de cette publication a-t-il déjà rédigé des articles pour l'AHC?";s:4:"name";s:30:"publication_ahc_author_contrib";s:4:"type";s:10:"true_false";s:12:"instructions";s:0:"";s:8:"required";s:1:"1";s:7:"message";s:0:"";s:13:"default_value";s:1:"1";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"1";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5298d96b297a3";s:8:"operator";s:2:"==";s:5:"value";s:28:"L'auteur est membre de l'AHC";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:7;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5299a61868e7b</wp:meta_key>
    			<wp:meta_value><![CDATA[a:11:{s:3:"key";s:19:"field_5299a61868e7b";s:5:"label";s:54:"Confirmer en le selectionnant dans la liste ci-dessous";s:4:"name";s:29:"publication_author_ahc_author";s:4:"type";s:4:"user";s:12:"instructions";s:0:"";s:8:"required";s:1:"0";s:4:"role";a:1:{i:0;s:3:"all";}s:10:"field_type";s:6:"select";s:10:"allow_null";s:1:"0";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"1";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5299a58668e7a";s:8:"operator";s:2:"==";s:5:"value";s:1:"1";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:8;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5299a9ccb6b76</wp:meta_key>
    			<wp:meta_value><![CDATA[a:8:{s:3:"key";s:19:"field_5299a9ccb6b76";s:5:"label";s:34:"L'auteur n'est pas Membre de l'AHC";s:4:"name";s:0:"";s:4:"type";s:3:"tab";s:12:"instructions";s:0:"";s:8:"required";s:1:"0";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"1";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5298d96b297a3";s:8:"operator";s:2:"==";s:5:"value";s:34:"L'auteur n'est pas membre de l'AHC";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:9;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5299aa22b6b77</wp:meta_key>
    			<wp:meta_value><![CDATA[a:14:{s:3:"key";s:19:"field_5299aa22b6b77";s:5:"label";s:4:"Nom:";s:4:"name";s:27:"publication_author_lastname";s:4:"type";s:4:"text";s:12:"instructions";s:0:"";s:8:"required";s:1:"1";s:13:"default_value";s:0:"";s:11:"placeholder";s:0:"";s:7:"prepend";s:0:"";s:6:"append";s:0:"";s:10:"formatting";s:4:"html";s:9:"maxlength";s:2:"50";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5298d96b297a3";s:8:"operator";s:2:"==";s:5:"value";s:28:"L'auteur est membre de l'AHC";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:10;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5299aa58b6b78</wp:meta_key>
    			<wp:meta_value><![CDATA[a:14:{s:3:"key";s:19:"field_5299aa58b6b78";s:5:"label";s:8:"Prénom:";s:4:"name";s:28:"publication_author_firstname";s:4:"type";s:4:"text";s:12:"instructions";s:0:"";s:8:"required";s:1:"1";s:13:"default_value";s:0:"";s:11:"placeholder";s:0:"";s:7:"prepend";s:0:"";s:6:"append";s:0:"";s:10:"formatting";s:4:"html";s:9:"maxlength";s:2:"50";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5298d96b297a3";s:8:"operator";s:2:"==";s:5:"value";s:28:"L'auteur est membre de l'AHC";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:11;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5299aa99b6b79</wp:meta_key>
    			<wp:meta_value><![CDATA[a:12:{s:3:"key";s:19:"field_5299aa99b6b79";s:5:"label";s:13:"Adresse mail:";s:4:"name";s:24:"publication_author_email";s:4:"type";s:5:"email";s:12:"instructions";s:0:"";s:8:"required";s:1:"1";s:13:"default_value";s:0:"";s:11:"placeholder";s:0:"";s:7:"prepend";s:0:"";s:6:"append";s:0:"";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5298d96b297a3";s:8:"operator";s:2:"==";s:5:"value";s:28:"L'auteur est membre de l'AHC";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:12;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5299ab72e0331</wp:meta_key>
    			<wp:meta_value><![CDATA[a:8:{s:3:"key";s:19:"field_5299ab72e0331";s:5:"label";s:14:"La Publication";s:4:"name";s:0:"";s:4:"type";s:3:"tab";s:12:"instructions";s:0:"";s:8:"required";s:1:"0";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5298d96b297a3";s:8:"operator";s:2:"==";s:5:"value";s:28:"L'auteur est membre de l'AHC";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:13;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5299ab8de0332</wp:meta_key>
    			<wp:meta_value><![CDATA[a:13:{s:3:"key";s:19:"field_5299ab8de0332";s:5:"label";s:12:"S'agit-il...";s:4:"name";s:18:"publication_format";s:4:"type";s:5:"radio";s:12:"instructions";s:0:"";s:8:"required";s:1:"1";s:7:"choices";a:3:{s:26:"... d'un ouvrage publié ?";s:26:"... d'un ouvrage publié ?";s:46:"... d'un article à retranscrire sur le site ?";s:46:"... d'un article à retranscrire sur le site ?";s:57:"... d'un lien vers un article publié sur un autre site ?";s:57:"... d'un lien vers un article publié sur un autre site ?";}s:12:"other_choice";s:1:"0";s:17:"save_other_choice";s:1:"0";s:13:"default_value";s:0:"";s:6:"layout";s:8:"vertical";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5298d96b297a3";s:8:"operator";s:2:"==";s:5:"value";s:28:"L'auteur est membre de l'AHC";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:14;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5299acd116f44</wp:meta_key>
    			<wp:meta_value><![CDATA[a:14:{s:3:"key";s:19:"field_5299acd116f44";s:5:"label";s:18:"Titre de l'ouvrage";s:4:"name";s:22:"publication_book_title";s:4:"type";s:4:"text";s:12:"instructions";s:0:"";s:8:"required";s:1:"1";s:13:"default_value";s:0:"";s:11:"placeholder";s:0:"";s:7:"prepend";s:0:"";s:6:"append";s:0:"";s:10:"formatting";s:4:"html";s:9:"maxlength";s:0:"";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5299ab8de0332";s:8:"operator";s:2:"==";s:5:"value";s:26:"... d'un ouvrage publié ?";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:15;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5299ad2716f45</wp:meta_key>
    			<wp:meta_value><![CDATA[a:15:{s:3:"key";s:19:"field_5299ad2716f45";s:5:"label";s:21:"Année de publication";s:4:"name";s:21:"publication_book_year";s:4:"type";s:6:"number";s:12:"instructions";s:0:"";s:8:"required";s:1:"0";s:13:"default_value";s:0:"";s:11:"placeholder";s:0:"";s:7:"prepend";s:0:"";s:6:"append";s:0:"";s:3:"min";s:4:"1900";s:3:"max";s:4:"2015";s:4:"step";s:1:"1";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5299ab8de0332";s:8:"operator";s:2:"==";s:5:"value";s:26:"... d'un ouvrage publié ?";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:16;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>field_5299af1173901</wp:meta_key>
    			<wp:meta_value><![CDATA[a:11:{s:3:"key";s:19:"field_5299af1173901";s:5:"label";s:47:"Rediger - Copier / Coller l'article  ci-dessous";s:4:"name";s:24:"publication_article_text";s:4:"type";s:7:"wysiwyg";s:12:"instructions";s:0:"";s:8:"required";s:1:"1";s:13:"default_value";s:0:"";s:7:"toolbar";s:4:"full";s:12:"media_upload";s:2:"no";s:17:"conditional_logic";a:3:{s:6:"status";s:1:"0";s:5:"rules";a:1:{i:0;a:3:{s:5:"field";s:19:"field_5299ab8de0332";s:8:"operator";s:2:"==";s:5:"value";s:46:"... d'un article à retranscrire sur le site ?";}}s:8:"allorany";s:3:"all";}s:8:"order_no";i:17;}]]></wp:meta_value>
    		</wp:postmeta>
    		<wp:postmeta>
    			<wp:meta_key>rule</wp:meta_key>
    			<wp:meta_value><![CDATA[a:5:{s:5:"param";s:9:"post_type";s:8:"operator";s:2:"==";s:5:"value";s:11:"publication";s:8:"order_no";i:0;s:8:"group_no";i:0;}]]></wp:meta_value>
    		</wp:postmeta>
    	</item>
    </channel>
    </rss>
    

    Thanks for the trouble ! strange bug !
    Rgds,
    JM

  • Hi everyone & and a Happy new Year to you all From Fram France :)!

    I’m afraid I concur : tabs are still bouncing back to first …!
    If the same if statement which caused the bug before the 4.3.3 release is still there, maybe it still causes the bug ? I’ll look into this.
    Anyway, it’s ‘back to work’ here after gorging on Christmas pudding & such ! 🙂
    Rgds,
    JM

  • @eirksk, @elliot,
    Thanks for the fix, I concur, works like a charm.
    I’ m sure that you didn’t write this “if” loop for nothing , though Elliot !
    Any side effects of commenting this line ?
    Don’t know enough JS to dig into the code & find this…
    Can’t find this line in the minified file though.& I guess it’s still more efficient to use it 🙂

    I’ll wait for your feedback on the above to close the topic
    Anyway thanks to both & have a great Christmas & a Happy New Year !
    JM

  • @eiriksk
    Nope, I’ve googled some, but no, & I think @Elliot is researching the issue..
    An ACF bug ?
    Rgds,
    JM

  • Hi @Elliot!
    Thanks for the udate.
    I’ve tweaked the function some & found out that, for some reason, including $\POST in the function makes it work !
    Even if the $_POSRT does not contain the field ‘memeber_firstname per se…I guess the get_field function than can refer to the field name, with it’s corresponding value in the postmeta table :

    <?php
    function my_acf_update_value( $value, $post_id, $field ) {
    	global $_POST;
    	// vars
    
    	$new_title = get_field('member_firstname', $post_id) . ' ' . $value;
    	$new_slug = sanitize_title( $new_title );
    
    	// update post
    	// http://codex.wordpress.org/Function_Reference/wp_update_post
    	  $my_post = array(
          'ID'           => $post_id,
          'post_title' => $new_title,
    	  'post_name' => $new_slug
      );
    
    // Update the post into the database
      wp_update_post( $my_post );
    	
    	
    }
    
    add_filter('acf/update_value/name=member_lastname', 'my_acf_update_value', 10, 3);
    
    ?>

    Thanks for all !
    I intend to post a full & clear how-to post on this solution as it may come in handy to anyone else.Obviously won’t take the credit for any of it ! 🙂

    Thanks again
    JMB

  • HI @Elliot, and thanks for your reply.

    the ‘get_field (‘member_firstname’) does not seem to recall the field, when used inside this function… the rest works perfectly :
    – composing the $new_title & slug;
    – update of the wp_post with $post_id, – of course W/O the “member_firstname field value…!-:

    $my_post = array('ID'=> $post_id,'post_title' => $new_title,'post_name' => $new_slug );
    wp_update_post( $my_post );

    Another related question is how do I proceed to call this hook / function when / if the fieldset is updated (as opposed to just ‘created’) to reflect the change in member_last / firstname should these fields be changed?

  • Hi @Elliot,
    stupid mistake !
    So I got the 2 below hooks / filters below running fine, each returning the proper member_lastname & member_firstname value, one after the other, when I ‘publish the field set.
    At this point the WP_post /Post is created, but needs to be updated with the proper values, ie.
    – for the post_name a slug => member_firstname.”-“.member_firstname;
    – for the post_title => member_firstname.” “.member_firstname;

    add_filter('acf/update_value/name=member_lastname', 'my_acf_update_value', 10, 3);
    add_filter('acf/update_value/name=member_firstname', 'my_acf_update_value', 10, 3);

    So :
    – how do I keep both values from the previous hooks, so that I can use them to build both the above variables ?
    – do I need to build yet another hook to update the wp_post table, & “where / when” should this happen ? I guess when ACF completes the publishing / update of the wp_postmeta table ?

    Agin, many thanks for your help on this
    Regards,
    JMB

  • @elliot,
    Thanks again Elliot, I did just that and posted my fresh topic =>
    http://support.advancedcustomfields.com/forums/topic/tabs-bouncing-back-to-first-tab-on-input-of-conditional-fields/
    Many thanks again,
    JMB

  • @elliot,
    Thanks for the headsup, I put the folllowing hook in my functions.php file but nothing happened: Looks as if the hook was disregarded / ineffective:

    
    function my_acf_update_value( $value, $post_id, $field  )
    {
        //$value = "Custom value";
     
        // do something else to the $post object via the $post_id
     
        //return $value;
    	echo '<pre>';
    	print_r( $value );
    echo '</pre>';
    die;
    }
    // acf/update_value - filter for every field
    add_filter('acf/update_value', 'member_lastname', 10, 3);
    

    I cant be using it properly to get the value from ‘m’mber_lastname’…?

  • @elliot,

    I now remeber why this behaviour felt so strange:
    It happens when I change the value (ie select a different…) option button:
    I have a default option button loded when I select the tab, and when I change it for another option, it keeps the newly selected option, but immediately bounces back to the first tab…! Obviously there is no other way of selecting another option than to click it with th emouse (tabbing selects the next field…), and that prompts the “tab-bouncing”….!

  • Hi @elliot,
    And thanks for your reply!
    Yes, I guess this is what might be happening.
    So the correct thing to do would be use the mouse / TAB ONLY to select skip from one field / tab to another…

    I understand the logic for hitting enter / saving, but I must be a mistake clients / end-users often make too !!
    I’ll just have to make sure that the client is well aware of this, as it seems more intuitive to ‘enter’ than anything else …

    Anyway, many thanks again for your prompt reply & clear answer.
    Rgds,
    JMB

  • Hi @elliot,
    Many thanks for your reply.
    I’ll tweak this function/hook to see if I can understand the way it works.
    I do have a question , though:
    the “field” I need to change is the post_name, which obviously goes into the WP_POST Table of the DB. If I understand correctly, this should be the $value from the hook function ? & the aggregated ‘data’ (ie. something like get_field(‘firstname’).” “.get_field(‘lastname’)) should be the $field parameter of the function ? & How do I get the $post_id ?
    Sorry if I sound thick, lol !
    I’d like to var_dump() either the WP_post post before it gets recorded to see what the variable / object hold . When & how should I do this ?

    Many thanks again for your help.

  • Hi @elliot!
    Firstly thanks for the great plubin & and your support. I’ve scanned the support & saw that you always answer most thoughroughly.
    Greta job!
    So here I am with my ‘issue”, which I guess looks like what @augusto pointed out :
    I have created some tabs which show or not accordind to previous conditions. Theses tabs have some required files, but of course they are not filled in if the tab is not called by the condition…
    I wonder if that is the reason why , when I fill in fields in one of these fields & hit ‘return’, the form bounces back to the fist tab (eg. the one that shows first(..) and which has no restriction for showing…?
    A bug, an issue, most probabbly a mis-use of fields / tabs from my part ?

    Many thanks anyway
    Regards,
    JMB

  • @stephw
    I came accross you posts / rely: I also wanted to hide the ‘Title’ from the backend form, as it acts as a duplicate of 2 collated fields (firstname & last name…). Obviously the title is the post name so is needed.
    Could you please share the way you set up the title value, without having to input it ?
    I understand the ACF hooks system, similar to theWP logic, but am not comfortable with it at all yet (where to I how, which hoo to use, how to I collate the 2 values befofore saving the form…?
    Many thanks
    JMB

Viewing 23 posts - 1 through 23 (of 23 total)