Skip to content

Instantly share code, notes, and snippets.

View Waidoss's full-sized avatar

Александр Соколов Waidoss

View GitHub Profile
<?php if ( have_posts() ) : query_posts('p=1');
while (have_posts()) : the_post(); ?>
<?php the_title(); ?>
<?php the_content(); ?>
<?php the_post_thumbnail(array(100, 100)); ?>
<? endwhile; endif; wp_reset_query(); ?>
<?php
$idObj = get_category_by_slug('s_about');
$id = $idObj->term_id;
echo get_cat_name($id);
?>
$(".toggle_mnu").click(function() {
if($(".top_mnu").is(":visible")) {
$(".top_mnu").fadeOut(600);
} else {
$(".top_mnu").fadeIn(600);
}
function heightDetect() {
$(".main_head").css("height", $(window).height());
};
heightDetect();
$(window).resize(function() {
heightDetect();
});