Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • amar404

    (@amar404)

    Take a look at your query parameter WP_Query. You supplied ID for category. If you want to use ID, use cat=1. If you want to use category_name, use category slug like category_name=news

    For example :

    <div class="area1">
      <?php
          $args = array(
    	'post_type'     => 'post',
    	'category_name' => 'review'
          );
    
    	$query1 = new WP_Query( $args );
    
    	while($query1->have_posts()) : $query1->the_post();
    		the_title();
    	endwhile;
    
    	wp_reset_postdata();
      ?>
    </div>
    
    <div class="area2">
      <?php
          $args = array(
    	'post_type'     => 'post',
    	'category_name' => 'news'
          );
    
    	$query2 = new WP_Query( $args );
    
    	while($query2->have_posts()) : $query2->the_post();
    		the_title();
    	endwhile;
    
    	wp_reset_postdata();
      ?>
    </div>
    
    <div class="area3">
      <?php
          $args = array(
    	'post_type'     => 'post',
    	'category_name' => 'review'
          );
    
    	$query3 = new WP_Query( $args );
    
    	while($query3->have_posts()) : $query3->the_post();
    		the_title();
    	endwhile;
    
    	wp_reset_postdata();
      ?>
    </div>
    amar404

    (@amar404)

    Ok, I understand now. The way you can achieve this by creating 3 categories. And then using WP_Query to loops for each categories.

    amar404

    (@amar404)

    That’s require a lot of work, start from define post thumbnail image, see this Post_Thumbnails.

    I assumed you already have custom post type for event. Basically you need to do custom wordpress query for custom post types. See this for details WP_Query. After that you can use returned data like normal post. I’m sorry but I can’t explain more detail.

    amar404

    (@amar404)

    Hi, before proceed, please do all modification in child theme. Please see this for more details Child_Themes.

    Ok, all modification can be done in file called style.css. It’s in your theme folder. Add this rule at the bottom of the file.

    For text under logo
    #site-name a { color: #000099; }

    For menu boxes

    #nav a {
    background: [your bg color];
    color: [your menu color];
    }

    For current menu style

    .current_menu_item > a, .current_page_item > a {
    background: [color];

    amar404

    (@amar404)

    Yes, it’s possible. However you need to add some code in your content.php to display post thumbnails. Here is the reference –

    Post_Thumbnails

    amar404

    (@amar404)

    First, you should do this in your child theme. But you said don’t have access to server so I assume you can only do it in your wp dashboard.

    You can edit in admin dashboard. Appearance->Editor. Find file style.css and add at the bottom

    .site {
    margin: 0 auto;
    }

    But please remember once you updated your theme in the future, yo will lose all the changes.

    amar404

    (@amar404)

    In your menu, create link menu. Put # sign fro the URL and type your menu name. For example product. Then add menu with page below your previouly created menu.

    amar404

    (@amar404)

    For question 1, I don’t know what your intention. Can you be more specific?

    For question 2, you can remove date stamp, author, comment by editing content.php. See this video

    For question 3, in content.php, simply remove a tag with href the_permalink(). Leave only the_title() in h1 tag.

    amar404

    (@amar404)

    You can restore back your wordpress installation if you have backup database .sql and folders inside wp-content for media uploads and themes. It require changing some database settings for the new URL. Please let me know if you need any help regarding this matter.

    Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)