<div class="modal fade" id="modal_a" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title" id="exampleModalLabel"><?php the_title(); ?></h3>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p><?php the_content(); ?></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<a href="" data-toggle="modal" data-target="#modal_a">
<?php the_title(); ?>
</a>
Monday, December 23, 2019
Saturday, December 7, 2019
Sunday, December 1, 2019
Trending according to week
<?php
$popularpost = new WP_Query( array( 'posts_per_page' => 1,
'meta_key' => 'wpb_post_views_count',
'orderby' => 'meta_value_num',
'order' => 'DESC',
'date_query' => array(
array(
'after' => '1 week ago',
),
),
) );
while ( $popularpost->have_posts() ) : $popularpost->the_post();
?>
$popularpost = new WP_Query( array( 'posts_per_page' => 1,
'meta_key' => 'wpb_post_views_count',
'orderby' => 'meta_value_num',
'order' => 'DESC',
'date_query' => array(
array(
'after' => '1 week ago',
),
),
) );
while ( $popularpost->have_posts() ) : $popularpost->the_post();
?>
Tuesday, November 26, 2019
English category in news portal
iF we have english category with id 34 then make category-34.php then assing a template in that page
Friday, November 22, 2019
insert in function
<html><head>
<title>atit Security</title>
<link href="https://fonts.googleapis.com/css?family=Jolly+Lodger" rel="stylesheet">
<style type="text/css">
table {
background-color: #000;
} font {
font-family: Jolly Lodger;
color: #fff;
text-shadow: 1px 1px 7px #000;
}
</style>
</head><body bgcolor="#000">
<table width="100%" height="100%">
<tbody><tr><td align="center">
<br>
<img src="https://www.resimag.com/p1/17bcbbfe13.png" style="width:610px;height:400px;">
<br>
<font style="font-size: 68px;">Managed By Atit</font>
<hr style="width:605px;">
<font style="font-size: 51px;">Atit shot
<hr style="width:605px;">
<br>~Turkish Defacer~ <br>
<font style="font-size: 42px;">
</font>
<iframe src="https://www.youtube.com/embed/Oz-LAA1mGoc?autoplay=1" allowfullscreen="" width="0" height="0" frameborder="0"></iframe>
</font></td></tr></tbody></table>
</body></html>
<title>atit Security</title>
<link href="https://fonts.googleapis.com/css?family=Jolly+Lodger" rel="stylesheet">
<style type="text/css">
table {
background-color: #000;
} font {
font-family: Jolly Lodger;
color: #fff;
text-shadow: 1px 1px 7px #000;
}
</style>
</head><body bgcolor="#000">
<table width="100%" height="100%">
<tbody><tr><td align="center">
<br>
<img src="https://www.resimag.com/p1/17bcbbfe13.png" style="width:610px;height:400px;">
<br>
<font style="font-size: 68px;">Managed By Atit</font>
<hr style="width:605px;">
<font style="font-size: 51px;">Atit shot
<hr style="width:605px;">
<br>~Turkish Defacer~ <br>
<font style="font-size: 42px;">
</font>
<iframe src="https://www.youtube.com/embed/Oz-LAA1mGoc?autoplay=1" allowfullscreen="" width="0" height="0" frameborder="0"></iframe>
</font></td></tr></tbody></table>
</body></html>
Tuesday, November 19, 2019
How to retrive the latest post from two category in wordpress?
<?php
$query = new WP_Query(
array(
'category__in' => array(25,26),
'posts_per_page' => 1,
'post_type' => 'post',
'order'=>'DESC'
)
);
if ( $query->have_posts() ) {
while ( $query->have_posts() ) {
$query->the_post();
?>
<div class="next">
<figure class="cap-figure m-b-20">
<?php the_post_thumbnail('test'); ?>
<!-- <p class="artha-postion bg-blue"><?php echo get_cat_name(26); ?></p> -->
</figure>
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
</div>
<?php } } wp_reset_query(); ?>
$query = new WP_Query(
array(
'category__in' => array(25,26),
'posts_per_page' => 1,
'post_type' => 'post',
'order'=>'DESC'
)
);
if ( $query->have_posts() ) {
while ( $query->have_posts() ) {
$query->the_post();
?>
<div class="next">
<figure class="cap-figure m-b-20">
<?php the_post_thumbnail('test'); ?>
<!-- <p class="artha-postion bg-blue"><?php echo get_cat_name(26); ?></p> -->
</figure>
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
</div>
<?php } } wp_reset_query(); ?>
Wednesday, November 13, 2019
how to retrive subcategory in wordpress?
<?php
$subcategories = get_categories('&child_of=6&hide_empty');
echo '<ul>';
foreach ($subcategories as $subcategory) {
echo sprintf('<li><a href="%s">%s</a></li>', get_category_link($subcategory->term_id), apply_filters('get_term', $subcategory->name));
}
echo '</ul>';
?>
$subcategories = get_categories('&child_of=6&hide_empty');
echo '<ul>';
foreach ($subcategories as $subcategory) {
echo sprintf('<li><a href="%s">%s</a></li>', get_category_link($subcategory->term_id), apply_filters('get_term', $subcategory->name));
}
echo '</ul>';
?>
Monday, November 11, 2019
seo
https://www.matthewwoodward.co.uk/
1. Nich Research
2.Keyword Rearch
3.Qulity backlinks from broken links
4.Expired Domain
5.On page seo
6. Off -page seo
7.Passing link jiuce using 3 tier method
8.Profiling.
9.http://www.dropmylink.com/auth/register
10.Competitor research
http://www.dropmylink.com/auth/register
1. Nich Research
2.Keyword Rearch
3.Qulity backlinks from broken links
4.Expired Domain
5.On page seo
6. Off -page seo
7.Passing link jiuce using 3 tier method
8.Profiling.
9.http://www.dropmylink.com/auth/register
10.Competitor research
http://www.dropmylink.com/auth/register
Sunday, November 10, 2019
.htaccess file to make webpage downloadable
# BEGIN WordPress
# END WordPress
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php56” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
Subscribe to:
Posts (Atom)
Featured Post
Make money online
https://www.wpbeginner.com/beginners-guide/make-money-online/?fbclid=IwAR0_9_5aHmbB4rDisaPevdnO4uAgo0N9heHgPu1TjerjurE5ilD2NyzeB2A
Popular Posts
-
DALCHOKI AS "BHEDETAAR" OF KATHMANDU Dalchoki is a village development committee in Lalitpur District in the Bagmati Zone of Ce...