Contortion
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Moving shipping location on order review pageRemove this question please. Thanks
Forum: Plugins
In reply to: [Plugin: Wordfence] Update failed (Could not copy file)You need to go to /wp-content/upgrade/ and delete all the wordfence folders/files in there. Maybe you won’t be able to do that via FTP due to chown problems but will need shell access to your server to get rid of them. After that is done you will be able to upgrade without a problem
You need to go to /wp-content/upgrade/ and delete all the wordfence folders/files in there. Chances are you won’t be able to do that via FTP due to chown problems but will need shell access to your server to get rid of them. After that is done you will be able to upgrade without a problem
Forum: Plugins
In reply to: [Links With Icons Widget] W3C validator problemsJust to let you know, I altered your code a little and got rid of the errors : ` public function widget($args,$instance){
extract($args);
extract($instance);
$title = apply_filters(‘widget_title’,$title);
echo ‘<div style=”padding-left:40px”>’.$before_title . $title . $after_title;
echo ‘<ul class=”links_with_icons”>’;
for($i=0;$i<$numB;$i++)
{
$count=$i+1;
$target = ‘iT’.$count;
$link = ‘iLink’.$count;
$name = ‘iName’.$count;
$icon = ‘iIcon’.$count;
$nofollow = ‘iFollow’.$count;if(empty($$name)) return false;
//Determining Whether To Open In New Window Or Not
if($$target == 1)
{
$tar = ‘target=”_blank” ‘;
}
else
{
$tar = ”;
}//Determining If Link IS No Follow
if($$nofollow == 1)
{
$fol = ‘rel=”nofollow” ‘;
}
else
{
$fol = ”;
}//Parse URL for proper output in HTTP or HTTPS environment
$imgurl = parse_url($$icon);
$imgsrc=$imgurl[“host”].$imgurl[“path”];echo ‘<li class=”link_with_icon”><img src=”//’.$imgsrc.'” alt=””><a ‘.$fol.$tar.’href=”‘.esc_attr($$link).'”>’.esc_attr($$name).'</a></li>’;
}
echo ‘</ul></div>’;}`
Something to do with $beforewidget and $afterwidget was causing the problem
Forum: Plugins
In reply to: [WP RSS Multi Importer] Yahoo feed blank in lightbox popupAh ok well that clears up that issue, thanks. Bye bye Yahoo RSS ??
Forum: Plugins
In reply to: [WP RSS Multi Importer] WordPress database errorGood job, thanks
Yeah I was hoping for a featured image default for each feed… oh well
Forum: Plugins
In reply to: [WP RSS Multi Importer] WordPress database errorI just had the same error. Looking forward to the update.
Ok so I got it kind of working with this
$args=array( 'cat' => $cat, 'orderby' => 'title', 'order' => 'ASC' ); query_posts($args);
So now I get posts ordered by title, but now the pagination doesn’t work. I press page 2 of the category in the twentyfourteen theme and it gives me page 1 results again even though it says page 2 in the browser address bar
Anyone know what to do now?
I have tried adding $query like so
<?php /** * The template for displaying Category pages * * @link https://codex.www.ads-software.com/Template_Hierarchy * * @package WordPress * @subpackage Twenty_Fourteen * @since Twenty Fourteen 1.0 */ get_header(); ?> <section id="primary" class="content-area"> <div id="content" class="site-content" role="main"> <?php $query = new WP_Query( array ( 'orderby' => 'title', 'order' => 'ASC' ) ); if ( $query->have_posts() ) : ?> <header class="archive-header"> <h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'twentyfourteen' ), single_cat_title( '', false ) ); ?></h1> <?php // Show an optional term description. $term_description = term_description(); if ( ! empty( $term_description ) ) : printf( '<div class="taxonomy-description">%s</div>', $term_description ); endif; ?> </header><!-- .archive-header --> <?php // Start the Loop. while ( $query->have_posts() ) : $query->the_post(); /* * Include the post format-specific template for the content. If you want to * use this in a child theme, then include a file called called content-___.php * (where ___ is the post format) and that will be used instead. */ get_template_part( 'content', get_post_format() ); endwhile; // Previous/next page navigation. twentyfourteen_paging_nav(); else : // If no content, include the "No posts found" template. get_template_part( 'content', 'none' ); endif; ?> </div><!-- #content --> </section><!-- #primary --> <?php get_sidebar( 'content' ); get_sidebar(); get_footer();
but it gives me a list of all posts, not the posts in the specific category I am viewing
Forum: Hacks
In reply to: How to get category slug or ID in core functions.phpThe information you gave helped to fix this problem. Thank you very much bcworkz
Forum: Plugins
In reply to: [Videopack] Not obeying Custom Upload Folders pluginOk great, i’m looking forward to the update. Happy New Year Kyle
Forum: Hacks
In reply to: How to get category slug or ID in core functions.phpI want to get the category for a post when uploading a file to wordpress through its normal media upload ui. For posts there is always at least one category assigned by default when you add a post even if you dont choose one yourself. So I want to find a way to access the category slug in the function I mentioned.
Forum: Plugins
In reply to: [Videopack] Not obeying Custom Upload Folders pluginAnother plugin which is similar and called ‘Custom Upload Dir’ has the same problem.
Forum: Plugins
In reply to: [Videopack] Mp4 instead of m4vsorry my mistake, I was using very old version