Pierre Pernix
Forum Replies Created
-
Sorry I can’t reproduce the bug as long as I don’t want to regenerate all the bunch of images. I tried to regenerate few images from the “Media” page, it worked like a charm.
To help you to get a picture, below is how the error was displayed:1. "image1" (ID 1): All thumbnails was successfully regenerated in 7,874 seconds. - Thumbnail: 150x150 was deleted. - Thumbnail: 800x800 was deleted. - Thumbnail: 206x300 was deleted. - Thumbnail: 214x214 was deleted. - Thumbnail: 160x160 was deleted. - Thumbnail: 704x1024 was deleted. - Thumbnail: 290x290 was deleted. - Thumbnail: 550x800 was deleted. 2. function (){if(!d){var c=arguments,g,h,i,j,k;b&&(k=b,b=0);for(g=0,h=c.length;g 3. "image3" (ID 3): All thumbnails was successfully regenerated in 7,874 seconds. etc.
Hello there,
Like @n2codes did, I got a bunch of failures each time I try to regenerate my images.
The failure error is:
function (){if(!d){var c=arguments,g,h,i,j,k;b&&(k=b,b=0);for(g=0,h=c.length;g
Thanks for helping!Allright, it works fine, now.
Actually I have to say it is very easy to get it to work once you know the Facebook app step ??
One more thing: this is not obvious that the token is not required as long as there is no field marked with “*” in the widget settings panel…Thanks for your quick answer!
Hi there,
@kimikaze Thanks for your code. I have been looking for something similar for a long time. In my custom post type, I use to copy the values of several custom fields to the post title field (hidden with display:none) with the help of jQuery.
Problem: there is no way to check if this auto-generated title still exists in the database before publish, and nothing can avoid two posts with the same title to be created by different users.
Actually, I tried your code as it and it didn’t work: the custom post title with no title support is still saved as “draft”.
Well, I’m sure this code can also be improved to check if a post title still exists or not, but I’m a kind of PHP idiot.
For now, I will use the hidden <input> method you described, and no more need to hide the title field in JS. To be continued…Forum: Plugins
In reply to: [Wordbooker] [Plugin: Wordbooker] No image showing at all@moderator This was not code lines but a diagnostic message. I wanted to update this for more legibility but clicking on the “edit” link redirects to the support homepage. Too bad.
Forum: Plugins
In reply to: [Wordbooker] Wordbooker translation not workingSorry, I’d like to add a [plugin: wordbooker] mention to the thread’s title but there is no way to edit the first post anymore. Too bad.
Forum: Plugins
In reply to: [Taxonomy Images II] ciii_term_images() return image with no sourceHi there,
I uploaded the last version (1.33) and it works fine.
Thanks for the support !Forum: Plugins
In reply to: [Taxonomy Images II] ciii_term_images() return image with no sourceI noticed the plugin stores images in “wp-content/uploads/category-images-ii/”, using the ID of the custom taxonomy term to name the image, this way :
[term_id].thumb.[extension]
.So, even if it looks a bit crappy, I use the piece of code below as an alternative to get the image associated with a specific custom taxonomy term (in my case, the term ‘My brand’ from the ‘brands’ taxonomy) :
$term_data = get_term_by( 'name', 'My brand', 'brands' ); $term_id = $term_data->term_id; $upload_dir = wp_upload_dir(); $path = '/category-images-ii/' . $term_id . '.thumb'; $url = $upload_dir[baseurl]; $dir = $upload_dir[basedir]; if( $filename = glob( $dir . $path . '.*' ) ) { $extension = substr( $filename[0], -4 ); echo '<img src="' . $url . $path . $extension . '" />'; }
Forum: Plugins
In reply to: [Taxonomy Images II] ciii_term_images() return image with no sourceBump !
The well-named $imageid variable will return the id of the image : it’s very useful with the wp_get_attachment_url method, which gets the attachment by id.
Using the wp_get_attachment_image method, you will obviously echo the attachment itself but also the id (78).
You should try to modify your code this way :<?php $imageid = get_post_meta($post->ID, 'Logo', true); ?> <img src="<?php echo wp_get_attachment_url( $imageid ); ?>" />
What is your answer ? ??
I had the same problem, and I resolved it using the wp_get_attachment_url method :
<?php $imageid = get_post_meta($post->ID, 'yourfileimage', true); ?> <img src="<?php echo wp_get_attachment_url( $imageid ); ?>" />
Where yourfileimage has to be replaced with the name of the custom field