Welcome to the WordPress of my website.
zarinrasul
Deprecated: File Theme without sidebar.php is
deprecated since version 3.0.0 with no alternative available. Please include a sidebar.php template in your theme. in
/home/zarinras/public_html/wp-includes/functions.php on line
6131
Deprecated: File Theme without footer.php is
deprecated since version 3.0.0 with no alternative available. Please include a footer.php template in your theme. in
/home/zarinras/public_html/wp-includes/functions.php on line
6131
add_filter( 'the_content', 'filter_the_content_in_the_main_loop', 1 );
function filter_the_content_in_the_main_loop( $content ) {
// Check if we're inside the main loop in a single Post.
if ( is_singular() && in_the_loop() && is_main_query() ) {
return $content . esc_html__( 'I’m filtering the content inside the main loop', 'wporg');
}
return $content;
}
function is_home() {
global $wp_query;
if ( ! isset( $wp_query ) ) {
_doing_it_wrong( __FUNCTION__, __( 'Conditional query tags do not work before the query is run. Before then, they always return false.' ), '3.1.0' );
return false;
}
return $wp_query->is_home();
}
the_title(My Blog)
function the_permalink( $post = 0 ) {
/**
* Filters the display of the permalink for the current post.
*
* @since 1.5.0
* @since 4.4.0 Added the `$post` parameter.
*
* @param string $permalink The permalink for the current post.
* @param int|WP_Post $post Post ID, WP_Post object, or 0. Default 0.
*/
echo esc_url( apply_filters( 'the_permalink', get_permalink( $post ), $post ) );
}
function the_date( $format = '', $before = '', $after = '', $display = true ) {
global $currentday, $previousday;
$the_date = '';
if ( is_new_day() ) {
$the_date = $before . get_the_date( $format ) . $after;
$previousday = $currentday;
}
/**
* Filters the date a post was published for display.
*
* @since 0.71
*
* @param string $the_date The formatted date string.
* @param string $format PHP date format.
* @param string $before HTML output before the date.
* @param string $after HTML output after the date.
*/
$the_date = apply_filters( 'the_date', $the_date, $format, $before, $after );
if ( $display ) {
echo $the_date;
} else {
return $the_date;
}
}
I'm Zarin Rasul. I'm a third-year VIU student who is doing a Major in Digital Media Studies and a Minor in French. My hobbies are to travel, cook, go for walks, greet the animals, listen to music, Adobe Photoshop, and do art. However in most cases I keep using a lot of Social Media such as Facebook and Instagram. Please visit my index page and email me if you have any questions or concerns. Thank you!
Check out my classworks of coding.
Visit my term site project by clicking this link.