josepaitamala
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Adding a lightbox to certain imagesI usually use this plugin, is very good
https://www.ads-software.com/plugins/nextgen-gallery/Forum: Fixing WordPress
In reply to: query_posts pagination not showing all the pages that it shouldThank you alchymyth
I did use pre_get_posts and it works ok now. So just so everyone knows in case the need it, I put this code inside the index.php
<?php if ( have_posts()) : ?> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <div class="cth-news-content"> <div class="cth-news-thumb"> <?php the_post_thumbnail(array(99,99)); ?> </div> <div class="cth-news-content-text"> <div class="cth-news-title"> <h2 class="posttitle"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'cthawards' ); ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> </div> <?php //Shows the date when the post has been posted echo '<div class="cth-single-date">'; $date = sprintf( '<time class="entry-date" datetime="%1$s">%2$s</time>', esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); echo 'Posted on '.$date; echo '</div>'; ?> <div class="cth-news-excerpt"> <?php the_excerpt(); ?> </div> </div> </div><!--cth-news-content--> <?php endwhile; ?> <?php cthawards_content_nav( 'nav-below' ); ?> <?php endif; // end have_posts() check ?>
and this one on the function.php
<?php ///function to exclude all categories except category 1 on the index.php home function include_category( $query ) { if ( $query->is_home() && $query->is_main_query() ) { $query->set( 'cat', '1' ); $query->set( 'posts_per_page', 3 ); return; } } add_action( 'pre_get_posts', 'include_category' ); ?>
Forum: Plugins
In reply to: [Job Manager] [Plugin: Job Manager] Adding job entry form to frontend (2012)Hello, I am looking for the same, but can’t see it anywhere, did you ever find it or was it ever developed? thank you
Hi psidwell, No problem, thanks for your help anyway, hopefully someone will help, if I find a solution will post it anyway, Regards
hello, thanks for your help, The thing is i am adding loads of rss feed all in one page, you can see the page here https://members.cthawards.com/job-search/ , I read that _transient_timeout_feed and transient_feed should be deleted by default when cron runs, but that doesn’t seem to happen to me because there was thousands of these rows in the database
Hey thank you! i didn’t spot that setting! this sorts out the problem then, I appreciate it thanks!
I just checked, on the plugin description / obscure, and there it actually says about the plugin:
-Removes login error messages
Probably this is for security issues? If so it would be great if the plugin could have an option to enable or disable this feature.
Great plugin anyway!Hello,
I am having the same problem here, in more than one website using Better WP Security plugin. At the moment I have just added this code in the function.php of my theme<?php
add_filter(‘login_errors’,’login_error_message’);function login_error_message($error){
//check if that’s the error you are looking for
$pos = strpos($error, ‘incorrect’);
if ($pos === false) {
//its the right error so you can overwrite it
$error = “The information is wrong, if you don’t remember your login details click the Lost your password link below”;
}
return $error;
}
?>This adds a message when people put wrong details to login, but it doesn’t really sort out the problem. Hope someone can help. Thanks
Forum: Plugins
In reply to: [WP Display Header] Header not showing on BlogpageHello I am having the same problem here, if someone finds out how to fix it please let us know
Forum: Plugins
In reply to: [Plugin: WP-Members] Email address format not validated!oops, sorry about that, i am new here ??
Forum: Plugins
In reply to: [Plugin: WP Members] You must enter a valid email address PROBLEMSohh my god, sorry i didn’t realise, thank you!
Forum: Plugins
In reply to: [Plugin: WP-Members] Email address format not validated!Hi,
I have set up the WP-members plugin but I get the “You must enter a valid email address” pop out all the time when registering a new user, even though the email address is valid, i posted it here, thanks
https://www.ads-software.com/support/topic/plugin-wp-members-you-must-enter-a-valid-email-address-problems?replies=1Forum: Fixing WordPress
In reply to: current_page_item not displaying using wp_list_pagesHey that fixed it! the current_page_item appears now, thank you very much!