manuelmasia
Forum Replies Created
-
Thank you -db-,
I’m trying to work on Camera 1.1.0 when I find the time (very hard). I’ll add this problem to my to-do list
Manuel ??
Forum: Plugins
In reply to: [Camera slideshow] [Plugin: Camera slideshow] Unable to upload imagesHi cookies,
are you sure you clicked the “File URL” button before inserting the image and the “Link URL” field displays the URL of the image: https://www.diigo.com/item/image/1fza7/hn6v?size=o
Manuel
Forum: Plugins
In reply to: [Camera slideshow] [Plugin: Camera slideshow] So much potentialThank you osu9400, maybe you’re right, but to make it easy I’m afraid I have to remove some features. However thank you for the tip, I’ll try to work in this direction ??
Forum: Alpha/Beta/RC
In reply to: Installing a theme in zip formatNo no, only single installations. I’ll test another domain on another server when I’ll find some time.
Forum: Alpha/Beta/RC
In reply to: Installing a theme in zip formatWP 3.2 does it, I don’t know why. This is the Gordian knot. I haven’t this problem with 3.1 or with 3.2 installed directly on the root, so I was wonder if it was a bug of the new version.
Forum: Alpha/Beta/RC
In reply to: Installing a theme in zip formatI didn’t change the behavior of WordPress… why did you say that? I just installed many blogs on the same domain in a folder called themes.
The theme works fine, I installed it by using an FTP client and I tried by uploading the zip on another WP 3.2 installation too (on the root, this time).
Ok, I’ll investigate.
Forum: Alpha/Beta/RC
In reply to: Installing a theme in zip formatHi ipstenu… thanks for the tip, again. But if I make a downgrade of my version of WordPress and try to install the same theme with WP 3.1 everything is fine. So I don’t think the problem is my personal settings.
Forum: Alpha/Beta/RC
In reply to: Installing a theme in zip formatYes, I’m sure, “newtheme” installation runs WP 3.2, “mytheme” installation runs WP 3.1.
And here are the messages:
Unpacking the package…
Installing the theme…
Destination folder already exists. /domains/pixedelic.com/public_html/themes/delight/
Theme install failed.I have a directory on my site called themes where I publish the WP themes I develop. “delight” is the name of the directory where I installed WP 3.1 and a theme I developed, called “delight”.
Then I installed on another directory called:
/domains/pixedelic.com/public_html/themes/endless/
WP 3.2 RC 2. I wanted to test my theme called “delight” in this installation too, but I can upload it only by using a FTP client, because of the problem above.Just to be as clear as possible.
Forum: Alpha/Beta/RC
In reply to: Installing a theme in zip formatSorry, I forgot to say it. It was implied that I had already checked ??
Of course, there are no other theme folders with the same name… but thanks for the tip!
Manuel
Forum: Fixing WordPress
In reply to: Need to get attachment ID by Image URLThank you James!! I saved a lot of time with your function!
Forum: Fixing WordPress
In reply to: Pagination in categories with permalink set to postnameSorry… my fault! There was a conflict with another function… it works! But in the second way, not the first.
Bye
Forum: Fixing WordPress
In reply to: Pagination in categories with permalink set to postnameOk… I tryed another way:
add_filter( 'pre_get_posts', 'number_of_posts' ); function number_of_posts( $wp_query = '' ) { remove_filter( 'pre_get_posts', 'number_of_posts' ); global $wp_query; global $wpdb; $cat_obj = $wp_query->get_queried_object(); if ( $wp_query->is_category ) { if ( !($category_id = $wp_query->get('cat')) ) { $category = $wp_query->get('category_name'); $sqlstr = "SELECT term_id FROM $wpdb->terms WHERE slug = '". $wpdb->escape($category) ."'"; $category_id = (int) $wpdb->get_var($sqlstr); if ( $category_id==3 ) { echo "<script>alert (".$category_id.");</script>"; $wp_query->query_vars['posts_per_page'] = 2; } elseif( $category_id==1) { echo "<script>alert (".$category_id.");</script>"; $wp_query->query_vars['posts_per_page'] = 1; } } else { $category_id = $cat_obj->term_id; if ( $category_id==3 ) { $wp_query->query_vars['posts_per_page'] = 2; } elseif( $category_id==1) { $wp_query->query_vars['posts_per_page'] = 1; } } } return $wp_query; }
But it still doesn’t work. The strange thing:
the alert() function works and display the category id.Please help…
Forum: Fixing WordPress
In reply to: Query Post for 2 Category PagesIs anybody able to solve this problem?
There is no way (since WP 3) to overwrite global posts_per_page.