Support

Account

Forum Replies Created

  • Elliot thanks,
    yes it’s go white screen only in the Post container where the code been added before but the rest of the page it’s load

    here what i get in debug mode `Notice: get_settings is deprecated since version 2.1! Use get_option() instead. in /var/www/div/wp-includes/functions.php on line 2919 Notice: get_settings is deprecated since version 2.1! Use get_option() instead. in /var/www/div/wp-includes/functions.php on line 2919 Notice: get_settings is deprecated since version 2.1! Use get_option() instead. in /var/www/div/wp-includes/functions.php on line 2919 Notice: get_settings is deprecated since version 2.1! Use get_option() instead. in /var/www/div/wp-includes/functions.php on line 2919 Notice: Undefined variable: footer_theme_name in /var/www/div/wp-content/themes/designfolio/api/classes/theme_options.php on line 198 Notice: Undefined index: ws_plugin__qcache_menu_pages_css in /var/www/div/wp-content/plugins/quick-cache/includes/classes/admin-css-js.inc.php on line 20 Notice: Undefined index: ws_plugin__qcache_menu_pages_js in /var/www/div/wp-content/plugins/quick-cache/includes/classes/admin-css-js.inc.php on line 28 Notice: Функция load_plugin_textdomain вызвана с аргументом, который считается устаревшим с версии 2.7. Альтернативы не предусмотрено. in /var/www/div/wp-includes/functions.php on line 3019

    
    
    and 

    Notice: Функция wpdb::escape с версии 3.6 считается устаревшей! Используйте wpdb::prepare() or esc_sql(). in /var/www/div/wp-includes/functions.php on line 2919
    `

  • Hello elliot, thanks for the replay it’s give Blank page

  • Elliot thanks for the replay

    here what i am trying to run

    <?php query_posts( ‘cat=45&showposts=1’ );
    // The Loop
    while ( have_posts() ) : the_post(); ?>
    <div class=”mrimg”>” height=”185″ width=”185″ alt=”Последняя работа”></div>
    <div class=”mrname”>” title=”<?php the_field(‘sitename’); ?>” > <?php the_field(‘companyname’); ?> </div>
    </div>
    </div>
    <?php endwhile;

    // Reset Query
    wp_reset_query();

    ?>

  • Hello Elliot thanks for the replay here what’s going on in function.php
    when

    	/* if( $post_id != 'new' )
        {
            return $post_id;
        }*/
     

    is active i mean without the /* the form not saving but with it active it’s not saving but i think the $post id is important for the next function which it’s for the post_title which it’s also not working

    add_action('save_post', 'modify_post_title');
    
    	function modify_post_title($post_id) {
    		
    		 if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) 
              return;
    		
    		 if ( ! wp_is_post_publish( $post_id ) ) {
    		 		
    		 
    		 if('taxirent' == get_post_type($post_id) ) {
    		 	
    				$post_title = the_field('munf', $post_id) .' : '. the_field('price', $post_id);
    				
    				
    		
    			
    		 } 
    	
    	}
    		 
    		 if('acf' != get_post_type($post_id)) {
    		 if ($post_title == '') { $post_title = $_POST['post_title'];}
    		 remove_action('save_post', 'modify_post_title');
    		 $arg = array();
    				$arg['ID'] = $post_id;
    				$arg['post_title'] = $post_title;
    				wp_update_post( $arg );
    				add_action('save_post', 'modify_post_title');
    		 }
    	} 

    and when load page which it’s content the form

    <?php
    /*
    Template Name: Add Ads
    */
    ?>
    <?php 
    acf_form_head();
    get_header();
    ?>
    			<?php get_sidebar('top'); ?>
    			
    			
    <?php
       if ( is_user_logged_in() ) {
         
    	 
        $args = array(
            'post_id' => '!new',
            'field_groups' => array(153),
        );
         
        acf_form( $args );
      
       } else {
       	echo 'вы не можете получить доступ к этой странице';
       }
    ?>
    			
    			<?php get_sidebar('bottom'); ?>
    <?php get_footer(); ?>

    the form fields are not empty i mean it’s not giving a new post id what i am missing

  • Thank you for the replay seems i did not explain enough that i have about 20 li with different classes so each post will display some of this li some all of them so how i can defend display of this li in this way in the li where i do not choose it will not display only the class but not all the li so what i am trying it to display/hide all the li
    i hope i could better explain

  • Hello thanks for the replay 🙂
    cos this li has different classes and contents tried allot of ways to defend css to the same li.
    and different posts may it content some of this li
    so this why i was traing to defend this li as html by choose box
    sorry if my english is bad not english talker

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