Bobby Gunawan
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Related Articles by tagsHello,
I think you’re overcomplicating the code here by recreating your own loop. Make use of core WP functions to loop through the post items.
Read more about the loop here.
As for what you’re trying to do, try this:
function my_related_posts() { global $post; $tags = wp_get_post_tags( $post->ID ); if ( ! $tags ) { return; } $tag_ids = array(); foreach ( $tags as $tag ) $tag_ids[] = $tag->term_id; $args = array ( 'tag__in' => $tag_ids, 'post__not_in' => array( $post->ID ), 'posts_per_page' => 3, 'ignore_sticky_posts' => 1 ); // IMPORTANT: Instantiate a new WP Query $query = new wp_query( $args ); // Start WP LOOP while ( $query->have_posts() ) : $query->the_post(); <?php // your html here. ?> endwhile; wp_reset_query(); // IMPORTANT: reset query }
Forum: Fixing WordPress
In reply to: Admin Login StoppedWhat you can try is deactivating all plugins through phpMyAdmin.
[link moderated – keep support on this site Forum Rules.
Hope that helps.
Forum: Fixing WordPress
In reply to: Upgraded to 4.5 and now have the white screen of deathForum: Themes and Templates
In reply to: [Olevia] HTTP errorHello there,
I’m sorry but I don’t think I can help you there. Have you tried contacting support from GoDaddy?
It might be something to do with the permissions of the uploads folder in your hosting account. Try reading this.(This is a very wild guess though.)
Thanks.
Forum: Themes and Templates
In reply to: [Olevia] Change bolg post image sizeThanks @archana Solanki. Greatly appreciate your help.
Forum: Themes and Templates
In reply to: [Olevia] Hover Text and Portfolio Images side by sideSorry for the huge delay, I somehow missed the notification of this message in my email.
This might be an issue for an old version which has been fixed. For further information, you can refer to https://docs.made4wp.com/olevia/.
Thanks!
Hello @mohitdesignmafias,
May I know which part you are having trouble with? The documentation link which @esmi provided answers your question.
To be exact read “Home page Template” here – https://docs.made4wp.com/olevia/#portfolio
Hope that helps.
Forum: Themes and Templates
In reply to: [Olevia] featured image from portfolio pageHello @mariajuliaocampo,
This might help – https://made4wp.com/wordpress-create-a-child-theme/
Btw, it’s better to create a new thread if you need further help.
Thanks!
Forum: Themes and Templates
In reply to: [Olevia] Grid dimensionsHello @mariajuliaocampo,
A 2 by 2 and 4 by 4 grid layout will be added in the next update which will be shortly after WordPress 4.5 releases.
Thanks!
Forum: Themes and Templates
In reply to: [Olevia] Olevia returns white home page instead of portfolioHello,
I’m sorry for this delay and I’m glad you managed to find the problem. Let me know if there’s anything else.
Thanks!
Forum: Themes and Templates
In reply to: [Olevia] More imagesHey there,
I’m so sorry for this delay. You can add as many images as you wish in the Visual Editor, just like a normal blog post.
If the featured image is what you’re talking about, then it’s not possible to have multiple featured images show for a portfolio item.
Hope that helps.
Forum: Themes and Templates
In reply to: [Olevia] featured image from portfolio pageHello,
Yes you are correct.
Just to be sure here, when you say “portfolio page”, do you mean the portfolio page template or are you talking about the page where you are viewing one single portfolio item?
If it’s the latter, I would advise you to create a child theme, add the template-parts/content-single-portfolio.php file and edit out olevia_print_post_thumbnail() the function to remove it completely.
(I assume you have some knowledge in coding.)Hope that helps.
Forum: Themes and Templates
In reply to: [Olevia] Active Links – ColorHello,
The links are black and red on hover. You can change the overall theme color (including links) in Apperance > Customise > Color > Theme color.
Hope that helps.
Forum: Fixing WordPress
In reply to: How do i center my HTML bannerYou’re welcome.
Forum: Fixing WordPress
In reply to: How do i center my HTML bannerAdd a text align center to the <p> tag wrapping the block of code script.
<p style="text-align: center;"> <script type="text/javascript">// <![CDATA[ var bannersnack_embed = {"hash":"bcpi4iijo","width":900,"height":360,"t":1458560114,"userId":23126406,"type":"ht ml5"}; // ]]></script><br> <script src="//cdn.bannersnack.com/iframe/embed.js" type="text/javascript"></script> <iframe src="//cdn.bannersnack.com/banners/bcpi4iijo/embed/index.html?t=1458560114&userId=23126406" width="900" height="360" frameborder="0" allowtransparency="true" scrolling="no" allowfullscreen=""></iframe> </p>