martin.kovac
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumb NavXT] Breadcrumbs loaded with ajax don't workThank you very much. I decide to use query_post instead of WP_Query and it is working fine now. Problem was in global variable $wp_query which was empty when using WP_Query. But it would be better to use also WP_Query in the future ??
Forum: Plugins
In reply to: [WP-Polls] poll_result is not definedThanks Lester,
I don’t use any of the caching or re-arranging JS plugin and this was not the problem.
I found the problem here: wp_enqueue_script(‘wp-polls’, plugins_url(‘wp-polls/polls-js.js’), array(‘jquery’), WP_POLLS_VERSION, true); in wp-polls.php file.
I need to use my own jquery so I deregister this script. I just change this to my own JS script after which polls-js.js must be loaded.
It works now.Anyway many thanks for the help.
Forum: Plugins
In reply to: [WP-Polls] Add poll descriptionOK thanks.
Forum: Plugins
In reply to: [WP-Polls] Add poll descriptionAny idea how to add description programmatically?
Forum: Fixing WordPress
In reply to: Login problemThank you very much WPyogi, that helps me a lot :). It is working fine now.
Forum: Hacks
In reply to: tinyMCE config file locationOK,
hopefully I have found solution – I must create custom shortcode plugin. This plugin is generate
<i>
tag into<li>
as I want. There is just need to replace some string and loop over every<li>
tag.
Thanks anywayForum: Hacks
In reply to: tinyMCE config file locationesmi have you working with custom styles in tinymce editor? I’m looking for solution that will add
<i>
tag to each<li>
element.I try this:
function custom_mce_before_init_insert_formats($init_array) { $style_formats = array( array( 'title' => 'arrow', 'inline' => 'i', 'classes' => 'icon', 'wrapper' => false, 'exact' => true ) ); $init_array['style_formats'] = json_encode($style_formats); return $init_array; } add_filter('tiny_mce_before_init', 'custom_mce_before_init_insert_formats');
but this add
<i>
as wrapper of content of<li>
element so the result is:
<li><i class="icon">item 1</i></li>
but I want this:
<li><i class="icon"></i> item 1</li>
Thank you
[Please post all markup tags between backticks or use the code button. Post (painfully) re-constructed after it broke the forum’s topic display.]
Forum: Hacks
In reply to: tinyMCE config file locationI found only this:
if (settings.verify_html === false) settings.valid_elements = '*[*]';
But not sure if this is right.
Also that there was a tinymce bug in one or several version that didn’t recognize this *[*] – is that true?Forum: Fixing WordPress
In reply to: Display recent posts and pages in one queryThank you,
it helps, but I realized that I must used another query. I must retrieve posts from 2 categories (by ID), and pages from parent page (by ID). All other arguments are the same.
I try
query_posts(array( 'post_type' => array('post', 'page'), 'posts_per_page' => 10, 'order_by' => 'post_date', 'category__in' => array(1,2,3) ));
where 1 and 2 is post categories ID and 3 is id of parent page. But of course it return only posts in category 1 and 2 because. Is there something to specify the parent page ID?
If I use 2 queries I don’t know how to order this results by date.
Thanks