Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter samtemehr

    (@samtemehr)

    hi
    why not approved?

    https://translate.www.ads-software.com/projects/wp-plugins/zeno-font-resizer/dev/fa/default/

    • This reply was modified 5 years, 4 months ago by samtemehr.

    Yuzo Related Posts – Unauthenticated Call Any Action or Update Any Option

    ?
    https://wpvulndb.com/vulnerabilities/9254

    Thread Starter samtemehr

    (@samtemehr)

    thanks

    Thread Starter samtemehr

    (@samtemehr)

    exclude first post from tag?

    <?php $my_custom_query= new WP_Query(array( 'post_type' => 'post',
    		'post_status' => 'publish',
    		'tag'   =>   'test',
    		'order' => 'DESC',
    		'posts_per_page' =>'4',
    		
    		));
    		if($my_custom_query->have_posts()) : while($my_custom_query->have_posts()) : $my_custom_query->the_post(); ?> 
    		
    • This reply was modified 6 years, 1 month ago by samtemehr.
    • This reply was modified 6 years, 1 month ago by samtemehr.
    Thread Starter samtemehr

    (@samtemehr)

    <?php
    $category = get_the_category(); 
    $category_id = $category[0]->cat_ID;
    ?>
    Thread Starter samtemehr

    (@samtemehr)

    not loaded category posts?

    <?php
        $category_id = get_cat_ID( 'Category Name' );
        $category_link = get_category_link( $category_id );
    ?>
    <?php query_posts("cat=$category_id&showposts=1"); ?>
    
    
    • This reply was modified 6 years, 4 months ago by samtemehr.
    Thread Starter samtemehr

    (@samtemehr)

    I want in category.php return cat ID for current code.

    <?php $cat=THIS CATEGORY; ?>
     <?php query_posts("cat=$cat&showposts=1"); ?>
     <?php while (have_posts()) : the_post(); ?>
    • This reply was modified 6 years, 4 months ago by samtemehr.
    • This reply was modified 6 years, 4 months ago by samtemehr.
    Thread Starter samtemehr

    (@samtemehr)

    I found. ??

    function et_load_samtemehr_scripts() {
    	$template_dir = get_template_directory_uri();
    	$theme_version = et_get_theme_version();
    	
    	wp_enqueue_script( 'samtemehr-superfish', $template_dir . '/js/jquery.cookie.min.js', array( 'jquery' ), $theme_version, true );
    	wp_enqueue_script( 'samtemehr-fitvids', $template_dir . '/js/jquery.min.js', array( 'jquery' ), $theme_version, true );
    	wp_enqueue_script( 'samtemehr-bootstrap', $template_dir . '/js/bootstrap.min.js', array( 'jquery' ) , $theme_version, true );
    	wp_enqueue_style( 'samtemehr-bootstrap', $template_dir . '/css/bootstrap.min.css' );
    	wp_enqueue_style( 'samtemehr-iconic-font', $template_dir . '/css/iconic.min.css', $theme_version, true);
    	wp_enqueue_style( 'samtemehr-style', get_stylesheet_uri(), array(), $theme_version );
    	
    	//***** this is your code *****//
    	if ( !is_single() ) {
    	 wp_enqueue_script( 'samtemehr-index', $template_dir . '/js/index.min.js', array( 'jquery' ), $theme_version, true );
    	 wp_enqueue_style( 'samtemehr-index', $template_dir . '/css/index.min.css', $theme_version, true );
    	}
    	if ( !is_front_page() ) {
    	 wp_enqueue_script( 'samtemehr-content', $template_dir . '/js/newstext.min.js', array( 'jquery' ), $theme_version, true );
    	 wp_enqueue_style( 'samtemehr-content', $template_dir . '/css/newstext.min.css', $theme_version, true );
    	}
    	
    }
    add_action( 'wp_enqueue_scripts', 'et_load_samtemehr_scripts' );
    Thread Starter samtemehr

    (@samtemehr)

    my code is this.
    But not loaded…

    function et_load_samtemehr_scripts() {
    	$template_dir = get_template_directory_uri();
    	$theme_version = et_get_theme_version();
    	
    	wp_enqueue_script( 'samtemehr-superfish', $template_dir . '/js/jquery.cookie.min.js', array( 'jquery' ), $theme_version, true );
    	wp_enqueue_script( 'samtemehr-fitvids', $template_dir . '/js/jquery.min.js', array( 'jquery' ), $theme_version, true );
    	wp_enqueue_script( 'samtemehr-bootstrap', $template_dir . '/js/bootstrap.min.js', array( 'jquery' ) , $theme_version, true );
    	wp_enqueue_style( 'samtemehr-bootstrap', $template_dir . '/css/bootstrap.min.css' );
    	wp_enqueue_style( 'samtemehr-iconic-font', $template_dir . '/css/iconic.min.css', $theme_version, true);
    	wp_enqueue_style( 'samtemehr-style', get_stylesheet_uri(), array(), $theme_version );
    	
    	//***** this is your code *****//
    	if ( is_page_template( 'single.php' ) ) {
    	 wp_enqueue_script( 'samtemehr-index', $template_dir . '/js/index.min.js', array( 'jquery' ), $theme_version, true );
    	 wp_enqueue_style( 'samtemehr-index', $template_dir . '/css/index.min.css', $theme_version, true );
    	}
    	
    }
    add_action( 'wp_enqueue_scripts', 'et_load_samtemehr_scripts' );
    Thread Starter samtemehr

    (@samtemehr)

    @sterndata

    not loaded…

    function samtemehr_index_scripts() {
    	if ( is_page_template( 'index.php' ) ) {
    			wp_enqueue_style( 'samtemehr-index-min', get_stylesheet_directory_uri() . '/css/index.min.css' );
    			wp_enqueue_script( 'samtemehr-index-min', get_stylesheet_directory_uri() . '/js/index.min.js' );
    	}
    }
    add_action( 'wp_enqueue_scripts', 'samtemehr_index_scripts' );
    
    function et_load_samtemehr_scripts() {
    	$template_dir = get_template_directory_uri();
    
    	$theme_version = et_get_theme_version();
    
    	if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
    		wp_enqueue_script( 'comment-reply' );
    	wp_enqueue_script( 'samtemehr-superfish', $template_dir . '/js/jquery.cookie.min.js', array( 'jquery' ), $theme_version, true );
    	wp_enqueue_script( 'samtemehr-fitvids', $template_dir . '/js/jquery.min.js', array( 'jquery' ), $theme_version, true );
    	
    	wp_enqueue_script( 'samtemehr-flexslider', $template_dir . '/js/jquery.flexslider.js', array( 'jquery' ), $theme_version, true );
    	wp_enqueue_script( 'samtemehr-bootstrap', $template_dir . '/js/bootstrap.min.js', array( 'jquery' ), $theme_version, true );
    	wp_enqueue_style( 'samtemehr-bootstrap', $template_dir . '/css/bootstrap.min.css' );
    	
    	wp_enqueue_style( 'samtemehr-iconic-font', $template_dir . '/css/iconic.min.css', $theme_version, true);
    
    	/*
    	 * Loads the main stylesheet.
    	 */
    	wp_enqueue_style( 'samtemehr-style', get_stylesheet_uri(), array(), $theme_version );
    }
    add_action( 'wp_enqueue_scripts', 'et_load_samtemehr_scripts' );
    
    if ( ! function_exists( 'et_get_theme_version' ) ) :
    function et_get_theme_version() {
    	$theme_info = wp_get_theme();
    
    	if ( is_child_theme() ) {
    		$theme_info = wp_get_theme( $theme_info->parent_theme );
    	}
    
    	$theme_version = $theme_info->display( 'Version' );
    
    	return $theme_version;
    }
    endif;
    
    • This reply was modified 6 years, 4 months ago by samtemehr.
    • This reply was modified 6 years, 4 months ago by samtemehr.
    • This reply was modified 6 years, 4 months ago by samtemehr.
    Thread Starter samtemehr

    (@samtemehr)

    @sterndata

    function samtemehr_index_scripts() {
    	if ( is_page_template( 'index.php' ) ) {
    			wp_enqueue_style( 'samtemehr-index-min', get_stylesheet_directory_uri() . '/css/index.min.css');
    			wp_enqueue_script( 'samtemehr-index-min', get_stylesheet_directory_uri() . '/js/index.min.js' );
    	}
    }

    not loaded.

    • This reply was modified 6 years, 4 months ago by samtemehr.
    Thread Starter samtemehr

    (@samtemehr)

    @sterndata
    Thanks

    • This reply was modified 6 years, 4 months ago by samtemehr.
Viewing 12 replies - 1 through 12 (of 12 total)