Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • I am still having the same issue that @gavinwray described:

    Here are the steps where specifying your own Link URL in the Media Library fails:

    1) Insert image > Media Libary tab
    2) Click “Show” next to an existing image
    3) Manually add a URL in the “Link URL” field
    4) Don’t click “Insert into post”. Instead, choose “Save all changes” at the bottom of the “Add an image” popup.
    5) Click “Show” next to the image you edited in steps 2 and 3.
    6) The URL in “Link URL” field hasn’t been saved. The URL has reverted to http://mydomain.com/wp-content/uploads/imagefilename.jpg

    I’m using 2.9.1 and have tried the solution mentioned by @jonnymoon with no success.

    I’m having the same problem.

    ‘Add Media’ -> ‘Gallery’ -> *media_item* -> ‘Link URL’ -> ‘Save all changes’

    – always defaults to either the file or post URL; I cannot save a custom URL in this field when trying to use the WP gallery feature to link my gallery thumbnails to external pages.

    I have updated wp-admin/includes/media.php to the latest trac version but no luck. Anybody have an idea as to what’s happening?

    This is how I did it:

    //Specify the parent category
    $parent_cat = "Category";
    //get all categories
    $categories = get_categories();
    //loop through categories
    foreach ($categories as $cat) :
    	//retrieve category path string (i.e., 'Category/Sub-Category/')
    	$cat_str = get_category_parents( $cat->cat_ID );
    	//if current $cat has a parent (is not top-level) and $cat_str contains the $parent_cat string
    	if($cat->parent && stristr($cat_str, $parent_cat)) :

    get_category_parents() takes the current category id and returns a string with the category path, including itself, such as

    Category/

    Category/Sub-category/

    Category/Sub-category/Sub-category/

    the ‘if’ statement checks to make sure the current $cat is not top-level and that the parent string contains the parent category specified in $parent_cat, which excludes posts from other top-level categories.

    It would be great if you’d share your solution with us. Thanks!

    I’m doing the same thing. Here’s what you need to get the jQuery datepicker working:

    //datepicker script
    wp_enqueue_script('jquery-ui-datepicker', 'path/to/ui.datepicker.js', array('jquery','jquery-ui-core'), '1.7.1');
    
    /*my js init file...
    jQuery(document).ready(function(){
    	jQuery("#jquery-calendar").datepicker({
    		showOn: 'both',
    		buttonImage: 'img/calendar.gif',
    		buttonText: 'Choose',
    		buttonImageOnly: true,
    		changeMonth: true,
    		changeYear: true
    	});
    });
    */
    wp_enqueue_script('my-datepicker-js','path/to/js.js', array('jquery','jquery-ui-core','jquery-ui-datepicker'));
    
    //path to jQuery UI theme stylesheet
    wp_enqueue_style('jquery-ui','http://jqueryui.com/latest/themes/cupertino/ui.all.css');
    
    wp_print_styles();

    Never mind. There’s a plugin that does it for you. Of course.

    Is there any way to set the cookie domain up one level so it can be used by the root folder as well as the wordpress folder?

    For instance, my directory structure is such:

    root/index.php
    root/wordpress/wp-blog-header.php

    Is there a way to set the auth cookie so it can be used by both index.php (which calls wp-blog-header.php) and the wordpress installation? I tried using the COOKIE_DOMAIN constant but it didn’t work, or maybe that’s for something completely different. I couldn’t tell by the documentation, or maybe I’m just [enter your derogation here].

    With all respect, isn’t the wisdom of doing this up the individual? I would also like to implement this type of functionality on my blog. Leave it to me to figure out the logistics involved. I’d just like to know if it’s possible and if so, how to do it.

    Thanks

    Has there been any progress on this? I’m trying to do the same thing:

    Provide a form so ‘anonymous’ users can post an entry containing their name, email and a question, which will then be answered in the comments section by me. Sort of a blog in reverse.

Viewing 9 replies - 1 through 9 (of 9 total)