This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include_once(ABSPATH . WPINC . '/rss.php'); | |
wp_rss('http://www.gl3nnx.net/feed/', 7 ); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function the_slug() { | |
$post_data = get_post($post->ID, ARRAY_A); | |
$slug = $post_data['post_name']; | |
return $slug; | |
} | |
Once done, simply call the function within the loop to get the post or page slug. | |
<?php echo the_slug(); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$yeah = get_the_post_thumbnail( $post_id, 'thumbnail' ); | |
echo $yeah; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Bootstrap 101 Template</title> | |
<!-- Bootstrap --> | |
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media(max-width:767px){} | |
@media(min-width:768px){} | |
@media(min-width:992px){} | |
@media(min-width:1200px){} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0 | 20110126 | |
License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="container"> | |
<nav> | |
<ul> | |
<li><a href="#">Home</a></li> | |
<li><a href="#">WordPress</a> | |
<!-- First Tier Drop Down --> | |
<ul> | |
<li><a href="#">Themes</a></li> | |
<li><a href="#">Plugins</a></li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$yeah = get_the_post_thumbnail( $post_id, 'thumbnail' ); | |
echo $yeah; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Setting up variable names | |
$current_user = wp_get_current_user(); | |
// Get current username | |
if ( !$current_user->user_firstname ) { $customername = $current_user->display_name; } | |
// No username, then use the default username. If you are the admin , then the display name is "admin" | |
if ( $current_user->user_firstname ) { $customername = $current_user->user_firstname; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- This will loop and will show all products with a product category of freeshipping --> | |
<?php | |
$args = array( 'product_cat' => 'freeshipping', 'post_type' => 'product', 'posts_per_page' => 500, 'orderby' => 'rand' ); | |
$loop = new WP_Query( $args ); | |
while($loop->have_posts()) : $loop->the_post(); ?> | |
<div class='col-md-3 col-sm-4 col-xs-12' style="padding-bottom: 30px;"> | |
<a href="<?php echo esc_url( get_permalink() ); ?>"><img src='<?php echo get_the_post_thumbnail_url(); ?>' style="border-radius: 15px" class="img-responsive theimage" /> </a> | |
<center> |
OlderNewer