• Hi there!

    I did look for solution in current topics, however it didnt help…

    Could you please help me resolve the issue with shortcode ALWAYS appoearing on top of posts instead of a place i put it to?

    if ( !function_exists('navayan_subscribe') ){
    		function navayan_subscribe(){
    			wp_enqueue_style( '', CONST_NYS_DIR . 'default.css' );
    
    			$wrapper_id = 'ny_subscribe_wrapper';
    			echo "<div id='". $wrapper_id ."'>";
    
    			// EXCLUDE SUBSCRIBE FORM FOR LOGGED IN USER
    			if ( !is_user_logged_in() ) {
    				wp_enqueue_script( CONST_NYS_SLUG, CONST_NYS_DIR .'default.js', array('jquery'), '1.7.2' );
    
    				echo '<p>'. getOption( 'ny_subscribe_field_form_description', __('Know the updates by subscribing') ) .'</p>';
    
    				if ( isset( $_POST['ny_subscribe_submit'] ) ){
    					nys_AddSubscriberSubmit ();
    				}
    				echo "<form class='v". CONST_NYS_VERSION ."' id='ny_subscribe_form' method='post' action='#". $wrapper_id ."'>";
    
    				nys_FormFields();
    
    				echo "<p id='ny_subscribe_submit_wrapper'>
    							<input type='submit' name='ny_subscribe_submit' id='ny_subscribe_submit' value='". getOption( 'ny_subscribe_field_label', __('Subscribe') ) ."' />
    						</p>
    					</form>";
    			}else{
    				_e( "<p>". getOption( 'ny_subscribe_logged_in_msg', __('Вы уже подписаны!\!') ) ."</p>" );
    			}
    
    			echo '</div>';
    		}
    		add_shortcode('navayan_subscribe', 'navayan_subscribe');
    	}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘shortcode always appears on top’ is closed to new replies.