gunkev
Forum Replies Created
-
Forum: Localhost Installs
In reply to: How to stop localhost from redirecting to https@yabeshphotographycoimbatore I have tried all those methods none seems to be working.
Forum: Localhost Installs
In reply to: How to stop localhost from redirecting to https@bcworkz and @yabeshphotographycoimbatore I can’t even login in my local website. Each time I type localhost/mywebsite/wp-admin, I am redirected to https. I have checked my .htaccess file there is no https configuration. I equally checked httpd-ssl.conf and httpd.conf. There is no https configuration. I am using XAMPP.
Everything was working perfectly but after putting my website online, the localhost website redirects to the online version. I don’t want to edit the online version directly.
I just tested you method but I am still getting the same results. The value at the send seems to precise the number of characters.
This is how I am getting the cat description
$term = get_queried_object(); <?php echo mb_strimwidth($term->description, 0, 310, "...") ?>
Please the +4 value represent ? the number of characters ?
Forum: Developing with WordPress
In reply to: How can i display 4 post with different css styles ?Anyway thanks for your support
Forum: Developing with WordPress
In reply to: How can i display 4 post with different css styles ?I didn’t say the css is not working. I figured out the solution. The post where not display the way I wanted was because I set posts_per_page to 4. when I set it to 2 the post everything was okay. Know i just have to figure out how i will set it to 4 then triggered the third post to display in the next row with uikit
Forum: Developing with WordPress
In reply to: How can i display 4 post with different css styles ?here is the code
<div class="uk-child-width-1-2@s uk-grid-match uk-height-medium" uk-grid> <?php $args = array( 'post_type' => 'artwork', 'posts_per_page' => 4 ); $_artworks = new WP_Query($args); $classes1 = array( 0=>'uk-width-expand@s', 1=>'uk-width-1-3@s', ); $classes2 = array( 0=>'uk-position-bottom', 1=>'uk-position-top', ); $i = 0; ?> <?php if($_artworks -> have_posts()): ?> <?php while($_artworks -> have_posts()): $_artworks -> the_post(); ?> <article id="post-<?php the_ID(); ?>"<?php post_class($classes1[$i++%2]); ?>> <div class="uk-card uk-card-hover uk-card-body" style="background: url(<?php the_post_thumbnail_url(); ?>); background-size: cover"> <div class="uk-overlay uk-overlay-primary <?php post_class($classes2[$i++%2]); ?>"> <h3 class="uk-card-title"><?php the_title(); ?></h3> <p><?php the_excerpt(); ?></p> </div> </div> </article> <?php endwhile; ?> <?php endif; ?> </div>
and this is what i expect as results
file:///home/kevine/Pictures/xoutput.png
but this is what i get as result
file:///home/kevine/Pictures/aoutput.pngForum: Developing with WordPress
In reply to: How can i display 4 post with different css styles ?@joyously The css is working perfectky without WordPress but when i try to query such that it display post dynamically it stucks
Forum: Developing with WordPress
In reply to: How can i display 4 post with different css styles ?@joyously posts displayed but the different the styles didn’t apply to the post