Deniska
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Load javascript only when specify.Thank you, but this doesn’t help me. This is not resolve my problem.
Forum: Fixing WordPress
In reply to: Load javascript only when specify.I know this and I’m use this hook.
My function like this:function my_scripts() { global $post; if(!is_admin()){ wp_enqueue_script('jquery'); if ((is_single() || is_page()) && (strpos($post->post_content, 'rel="prettyPhoto"') > 1)) { wp_enqueue_script( 'prettyPhotojs', get_bloginfo('template_directory').'/includes/js/jquery.prettyPhoto.js', array( 'jquery' ), '', true ); } } } add_action('wp_print_scripts', 'my_scripts');
Doesn’t work.
Forum: Fixing WordPress
In reply to: Load javascript only when specify.Yes to both questions.
Forum: Fixing WordPress
In reply to: Load javascript only when specify.Do you test this code? For me this code doesn’t work.
Forum: Fixing WordPress
In reply to: Load javascript only when specify.Sorry, my pasted code is not correct, I’ve used code like give you. This doesn’t work for me.
Forum: Fixing WordPress
In reply to: Load javascript only when specify.Can anybody help me?
Forum: Fixing WordPress
In reply to: Adding multiselect or multicheck to theme options.I know this plugin but I have working theme options and now I want to add multicheck support. Using this plugin is too complicated for my theme. Too many changes need to do for this plugin.
Forum: Fixing WordPress
In reply to: How to remove unwanted metabox?I know why this snippet doesn’t work. Because this plugin does not use METABOX, they use hook for admin menu. And now my problem is how to change hook for admin menu to metabox and then I can use this snippet?
Forum: Fixing WordPress
In reply to: How to remove unwanted metabox?I know how to use this snippet. Believe me. For other metabox like “Excerpt”, “Author” all works fine but for this plugin they doesn’t work. I think the main problem is goes from plugin code.
Forum: Fixing WordPress
In reply to: How to remove unwanted metabox?It’s the same as I wrote above. This doesn’t work. Thanks.
Forum: Fixing WordPress
In reply to: Shortcode buttonI see this page but it’s not useful for creating button for all shortcodes. I have shortcodes and I want to add them to post/page using TinyMCE button. When I push the button I want to see all created shortcodes and then I can choose what I need. How to create this button? Please.
Forum: Fixing WordPress
In reply to: How to check if widget exist.Sorry, it was a stupid question. Topic closed.
Forum: Fixing WordPress
In reply to: Posts_per_page work not correctThank you for answer. I’m try to use all method that I know but they doesn’t work.
I try this<?php $limit = 6; $catid = 4,6; $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('showposts=' . $limit . '&paged=' . $paged . '&cat=' . $catid); $wp_query->is_archive = true; $wp_query->is_home = false; ?>
Page show all posts and doesnt show only one category.
Forum: Fixing WordPress
In reply to: Highlight category not pageSite is not online at this time. He is in a local machine.
<ul class="menu"> <?php if (is_page()) { $highlight = "page_item"; } ?> <li class="<?php echo $highlight; ?>"><a href="<?php echo get_option('home'); ?>" title="Home">Home</a></li> <?php wp_list_categories('include=4&title_li=&hide_empty=0¤t_category=0&orderby=ID&use_desc_for_title=1'); ?> <?php wp_list_pages('title_li=&exclude='); ?> </ul>
I hope this help to understand.
Forum: Fixing WordPress
In reply to: Problem with displaying child categories.Btw no one plugin cant resolve problem.