Ali Hussain
Forum Replies Created
-
Any updates?
Thanks @wfpeter
I had a couple of other queries.
- Is it possible to get detailed logs of the blocked requests? I would like to reverse engineer the post entries and add them to the database.
- Also is there a way to have daily notifications of Wordfence Live Traffic?
Thanks, much appreciated
Also is there a way to have daily notifications of Wordfence Live Traffic?
The quickest way to fix this is download the repo from Shortpixel Repo and replace the content within the plugin folder.
The quickest way to fix this is download the repo from Shortpixel Repo and replace the content within the plugin folder.
Forum: Fixing WordPress
In reply to: WordPress Query For AttachmentsI got this working on my own.
Thanks though<?php remove_all_filters('posts_orderby'); query_posts('showposts=3&post_type=image&orderby=rand'); global $more; $more=0;?> <?php if (have_posts) : while (have_posts()) : the_post(); global $more; $more=0;?> <?php $args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'orderby' => 'rand', 'post_parent' => $post->ID ); $attachments = get_posts($args); if ($attachments) { echo ''; // count number of available images and change if less than the specified limit foreach ($attachments as $post) { setup_postdata($post); $image = wp_get_attachment_image_src( $post->ID, 'thumbnail', false ); echo '<span class="media"><a href="'.get_permalink().'" title="'.get_the_title().'" style="background-image: url('.$image[0].');">'.get_the_title().'</a></span>';; } echo ''; } ?> <?php endwhile; endif; ?>
Forum: Fixing WordPress
In reply to: Loop Question@duck__boy Thanks
But how can i put this under an array?Forum: Fixing WordPress
In reply to: Loop Questioni want to implement
// Create a new filtering function that will add our where clause to the query function filter_where( $where = '' ) { // posts for March 1 to March 15, 2010 $where .= " AND post_date >= '2010-03-01' AND post_date < '2010-03-16'"; return $where; } add_filter( 'posts_where', 'filter_where' ); $query = new WP_Query( $query_string ); remove_filter( 'posts_where', 'filter_where' );
`
but in an array funtion like
year => $current
month => $funtion (last 11 months)Thanks
Forum: Fixing WordPress
In reply to: edit_post_link ProblemI used the reset_query before the edit link and it seems to be working just fine.
Forum: Fixing WordPress
In reply to: edit_post_link Problem@alchymyth
Yes, related posts do exist.Forum: Hacks
In reply to: WordPress Post Querygot it working …thankz
Forum: Hacks
In reply to: WordPress Post Queryi will be having a classified theme (study related)
where there be categories like
– ACCA
– O Levels
– A Levels
– Matriculate
– Intermediate
etc.If the user visits acca, the sticky posts of ACCA be shown.
If he visits o levls, the sticky from that category is posted.
and so on.Again thankyou
Forum: Hacks
In reply to: WordPress Post Querythanks raskull.
I edited some parts<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $sticky=get_option('sticky_posts'); $args=array( 'cat'=>232, 'caller_get_posts'=>1, 'post__in' => $sticky, 'paged'=>$paged, ); query_posts($args); while ( have_posts() ) : the_post() ?>
Wanted to know, isn’t there any way for the cat number to autofill, like if the user in on the autos category it is filled as autos
Forum: Hacks
In reply to: WordPress Post QueryI tried that, but am not able to get it to work.
Forum: Installing WordPress
In reply to: Images in RSSi have also tried using
function insertAds($content) { $image = get_post_meta($post->ID, 'thumb', true); $content = $content.'<img src="'.$image.'" /><hr />'; return $content; } add_filter('the_excerpt_rss', 'insertAds'); add_filter('the_content_rss', 'insertAds');
but it doesn’t seem to work