logo logo
  • Home
  • Streaming Premium Account
  • Tools Premium Account
  • Shop
  • Welfare
    • Account
    • Cracked Programs
    • Recourse
    • Amazon Affiliate
  • Digital Marketing
    • Search Engine Marketing
    • Social Media Marketing
    • Content Marketing
    • Email Marketing
  • Home
  • Streaming Premium Account
  • Tools Premium Account
  • Shop
  • Welfare
    • Account
    • Cracked Programs
    • Recourse
    • Amazon Affiliate
  • Digital Marketing
    • Search Engine Marketing
    • Social Media Marketing
    • Content Marketing
    • Email Marketing
  1. Home
  2. Website Tutorial
  3. Article list
WordPress displays articles in a specified category

Website Tutorial WordPress displays articles in a specified category

<?php $posts = get_posts( “category=4&numberposts=10″ ); ?> <?php if( $posts ) : ?> <ul><?php foreach( $posts as $post ) : setup_postdata( $post ); ?> <li> <a href=”<?php the_permalink() ?>” rel=”bookmark” title=”<?php the_title(); ?>”><?php the_title(); ?></a> </li> <?php endforeach; ?> </ul> <?php endif; ?>

31 Views 0 Comments
Website Tutorial August 7, 2024
WordPress display related articles

Website Tutorial WordPress display related articles

WordPress display related articles <?php $tags = wp_get_post_tags($post->ID); if ($tags) { $first_tag = $tags[0]->term_id; $args=array( ‘tag__in’ => array($first_tag), ‘post__not_in’ => array($post->ID), ‘showposts’=>10, ‘caller_get_posts’=>1 ); $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?> <li><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”<?php the_title_attribute(); ?>”><?php the_title();?> <?php comments_number(‘ ‘,’(1)’,’(%)’); ?></a></li> <?php endwhile; } } wp_reset_query();…

13 Views 0 Comments
Website Tutorial August 6, 2024
WordPress display the latest comment

Website Tutorial WordPress display the latest comment

WordPress display the latest comment <?php global $wpdb; $sql = “SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type,comment_author_url, SUBSTRING(comment_content,1,30) AS com_excerpt FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID) WHERE comment_approved = ’1′ AND comment_type = ” AND post_password = ” ORDER BY comment_date_gmt DESC LIMIT 10″; $comments = $wpdb->get_results($sql);…

21 Views 0 Comments
Website Tutorial August 6, 2024
wordpress display random articles

Website Tutorial wordpress display random articles

<?php $rand_posts = get_posts(‘numberposts=10&orderby=rand’); foreach( $rand_posts as $post ) : ?> <li><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></li> <?php endforeach; ?>

28 Views 0 Comments
Website Tutorial August 2, 2024
WordPress-Change the blog name and description

Website Tutorial WordPress-Change the blog name and description

In header.php, the following two lines of code are used to display the blog name and description: ~~~ <h1 id=”logo” class=”grid_4″>BBBBF</h1> <h2 class=”grid_12 caption clearfix”>Our <span>blog</span>, keeping you up-to-date on our latest news.</h2> ~~~ The above is static code, now make the following changes: ~~~ <h1 id=”logo” class=”grid_4″><a href=”<?php%20echo%20get_option(‘home’);%20?>/”><?php bloginfo(‘name’); ?></a></h1> <h2 class=”grid_12 caption clearfix”><?php…

21 Views 0 Comments
Website Tutorial August 2, 2024
WordPress theme-Change the stylesheet style.css path

Website Tutorial WordPress theme-Change the stylesheet style.css path

WordPress theme-Change the stylesheet style.css path Before this, the homepage you saw was messy because the css style had not been loaded. Now let’s add the style together. You can find this code in header.php: `<link rel=”stylesheet” href=”./style.css” type=”text/css” media=”screen” /> ` You may ask: Isn’t there already a style.css in the wp-content\themes\bbbbf directory? Then…

50 Views 0 Comments
Website Tutorial August 1, 2024
WordPress theme-create header.php

Website Tutorial WordPress theme-create header.php

WordPress theme-create header.php Next, create a new PHP file header.php in the theme directory wp-content\themes\bbbbf we created last time. We extract the header code in index.php and copy and paste it into header.php. The following code is all the code in header.php (of course, the header code of different themes is different, and you can…

15 Views 0 Comments
Website Tutorial August 1, 2024
WordPress template main file composition

Website Tutorial WordPress template main file composition

Theme file composition Before you start making a WordPress theme, you must first understand what files the WordPress theme is made of, and you must know how the WordPress program is connected to the theme file. The following are all the template files in the default folder of the WordPress default theme. After looking at…

17 Views 0 Comments
Website Tutorial August 1, 2024
How to Only Get the WordPress Featured Image URL

Website Tutorial How to Only Get the WordPress Featured Image URL

To get the URL of the featured image (also known as the post thumbnail) in WordPress, you can use the get_the_post_thumbnail_url() function. This function retrieves the URL of the featured image for a given post. Here’s how you can use it: For a Specific Post ID If you want to get the featured image URL…

14 Views 0 Comments
Website Tutorial July 30, 2024
WordPress get the last modified time of the article with the specified id

Website Tutorial WordPress get the last modified time of the article with the specified id

To get the last modified time of an article in WordPress given its ID, you can use the get_post_modified_time function. Here’s how you can do it: <?php $post_id = 5;$last_modified_time = get_post_modified_time(‘Y-m-d H:i:s’, true, $post_id); echo ‘last_modified_time: ‘ . $last_modified_time; ?> Explanation: get_post_modified_time(): This function retrieves the last modification time of a post. The first…

31 Views 0 Comments
Website Tutorial July 30, 2024
  • «
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • ...
  • 11
  • »
Latest Posts
2026 Peacock Premium Free Premium Accounts (Direct Login!)

2026 Peacock Premium Free Premium Accounts (Direct Login!)

Looking to catch the 2026 World Cup live, stream Premier League matches, or binge-watch your favorite NBC/Bravo shows on Peacock without paying for a monthly subscription? Today, we are dropping a fresh batch of Peacock Premium shared accounts for 2026! No catches, no tricky bypasses. This is a straight email-and-password share that works across all...
2026 Free PARAMOUNT+ Premium Account Cookies

2026 Free PARAMOUNT+ Premium Account Cookies

https://softurl.in/UkBYpL Looking to binge the latest hit series, Hollywood blockbusters, or live UEFA Champions League matches on Paramount+ without breaking the bank? We’ve got you covered for 2026! Today, we are sharing a dual-method bypass for Paramount+ Premium (Commercial-Free Tier) so you can enjoy 4K Ultra HD streaming instantly. We are providing both direct account...
Adobe Illustrator-Back To School Illustration

Adobe Illustrator-Back To School Illustration

Adobe Illustrator-Back To School Illustration Back To School Illustration High-quality vector illustration for your design needs. Perfect for your project design, print template, presentation design, social media, creative project, sticker design, etc. The illustration showcases: School bus, School backpack, Book, Blackboard, Apple on top of books, Lunchbox, Graduation cap, Paintbrush and color palette, Scissors and glue, Alarm...
WordPress Themes-Posty – News Magazine WordPress Theme

WordPress Themes-Posty – News Magazine WordPress Theme

Overview Posty – News Magazine WordPress Theme Overview Posty has been designed and developed with a modern responsive design, awesome typography and a focus on readability to provide your visitors with a quality user experience. It supports Elementor Page Builder. That will make this theme is easy to use for a new WordPress user. You don’t...
Video Templates-Modern AI Software Promotion with Neon UI and Automation Features

Video Templates-Modern AI Software Promotion with Neon UI and Automation Features

This video template offers a dynamic and professional solution for showcasing artificial intelligence software and SaaS platforms. The design features a high-contrast dark aesthetic illuminated by vibrant neon glowing borders in shades of purple, pink, and blue. Key animated sequences include a floating dashboard interface demonstrating real-time analytics, a collaborative team workflow diagram with connected...
Hot Posts
February 23-2024-X45 Disney+ Premium Accounts

February 23-2024-X45 Disney+ Premium Accounts

[email protected]:Taylorswift13! | Status = ACTIVE | Plan = [ Disney Plus Monthly – US – Web ] | Next Renew = [2024-01-22] | Bundle = False ? [email protected]:Liam2255! | Status = ACTIVE | Plan = [ Disney+, Hulu, and ESPN+ ] | Next Renew = [2024-01-03] | Bundle = True ? [email protected]:Damon2012 | Status =...
2026 Free Netflix Premium Account Cookies

2026 Free Netflix Premium Account Cookies

How to use Netflix Cookies to log in to Netflix? 2026 Free Netflix Premium Account Cookies https://shortxlinks.in/zflC2c9
2026 Crunchyroll Premium Accounts

2026 Crunchyroll Premium Accounts

2026 Crunchyroll Premium Accounts [email protected]:pratodearrozxd10 | EmailVerified = true | Plan = 〖MEGA FAN MEMBER〗-[cr_fan_pack.1_month] | Subscription = True | Expiry = 2026-06-17 | RemainingDays = 5 | Country = Brazil 🇧🇷[email protected]:krijan12 | EmailVerified = true | Plan = 〖FAN MEMBER〗-[crunchyroll.google.premium.monthly] | Subscription = True | Expiry = 2026-06-16 | RemainingDays = 4 | Country...
2026 Free Disney+ Premium Accounts

2026 Free Disney+ Premium Accounts

2026 Free Disney+ Premium Accounts  https://softurl.in/YLZicUg 2026 Free Disney+ Premium Accounts – Updated Daily Looking for free Disney+ Premium accounts in 2026? Our platform provides a frequently updated collection of Disney+ Premium account information, refreshed daily to help users discover the latest available access options. With Disney+ Premium, viewers can enjoy ad-free streaming, 4K Ultra...
2026 Free HBO Max Premium Accounts

2026 Free HBO Max Premium Accounts

2026 Free HBO Max Premium Accounts To protect the provider’s interests, please click the link to obtain the account and password. working now https://shortxlinks.in/eU9O6

 Theme by Puock