hcvitto
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] send mail to sender with given templateok, i solved using the mail(2) option which i did not know.
Forum: Themes and Templates
In reply to: added image size not showing in dropdown optionsI managed to add the option to the dropdown but i can’t understand how it wp makes it work.
This is my code in functions.phpif ( function_exists( 'add_image_size' ) ) { add_image_size( 'in-post', 1200, 9999, true ); } add_filter( 'image_size_names_choose', 'my_custom_sizes' ); function my_custom_sizes( $sizes ) { return array_merge( $sizes, array( 'in-post' => __('In post'), ) ); }
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
but when i upload an img (1920×1200) the image is sized and uploaded correctly but the option in the dropdown says:
In post – 625 x 390
so I can’t choose to insert the correct img in the post. I got no idea where these dimensions come from and why it does not get the dimension i set (which should be 1200xheight).Forum: Fixing WordPress
In reply to: media uploader: can't insert more than 3 images at a timei got no plugin activated and switching to the original themes (20-11 and 20-12) does not help. And i guess is not my host limit because the upload works, is the import into post that does not.
I’m gonna move wp on another server and give it a try.Forum: Fixing WordPress
In reply to: media uploader: can't insert more than 3 images at a timei tried with very small image but no change..is there any server configuration which it can depend on?
Forum: Fixing WordPress
In reply to: site goes in quirk mode when viewing pages onlydoh! thanks a lot Esmi!!
Bad i didn’t think about validation!!Forum: Fixing WordPress
In reply to: category list with postshi peter
thanks, it seems much better..but just to bu sure: do you suggest to use multiple get_posts, right?Forum: Fixing WordPress
In reply to: create special drop down menuthanks to
https://wpguy.com/articles/an-archives-page-with-all-the-posts-in-cronological-order/
i got to this solution
<ul id="mainNav"> <li><a href="">Archive</a> <ul> <?php // Declare some helper vars $previous_year = $year = 0; $ul_open = false; // Get the posts $myposts = get_posts('numberposts=-1&orderby=post_date&order=DESC'); foreach($myposts as $post) : // Setup the post variables setup_postdata($post); $year = mysql2date('Y', $post->post_date); if($year != $previous_year) : if($ul_open == true) : ?> </ul></li> <?php endif; ?> <li><?php the_time('Y'); ?> <ul class="month_archive"> <?php $ul_open = true; endif; $previous_year = $year;?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endforeach; ?> </ul></li></ul></li> </ul>
Forum: Fixing WordPress
In reply to: can’t access reading optionsFresh install
Forum: Fixing WordPress
In reply to: can’t access reading optionsActually
i tried to change the functions page of my theme and then the default theme and it gives me back the same error, just on those pages..Forum: Fixing WordPress
In reply to: can’t access reading optionshi guys
@ esmi:
i have no activated plugin;
i switched to the default theme (i’m using a gallery’ theme by the way) = no results;
@ greensahdy:
i can access all the other options but reading;
i’m the only user and got admin role..I know it sounds very weird..but i got no other clues.
I read about the use of the htaccess and as i said i can’t use it. I there any other way for that?Forum: Plugins
In reply to: EasyPermGals cache problem / wp cache problemit’s ok now..i just deleted everything from the posts table..fortunately it’s not a real site..
but this cache problem is really annoying..Forum: Themes and Templates
In reply to: custom field helpresolved!
get_post_meta gave me ‘array’ as result until i added the false paramter..Forum: Themes and Templates
In reply to: custom field helpsorry if i insist..any idea?
Forum: Fixing WordPress
In reply to: Updated page does not publishHi david
what was the problem? i think i have a similare problem with cache and pages that don’t update..Forum: Themes and Templates
In reply to: page template problemunfortunately i’m working on my local pc but i guess is a problem with the wp title tag, which gets automatically before any content..
i’m gonna just hardcode the title in the content nad that’s it..
but i’m giving a go to your plugin with the gallery..hope i can do it well. I’m gonna keep you informed.
Many thanks
vitto