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 class="container-fluid"> | |
<?php get_header(); ?> | |
<div class="row"> | |
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> | |
<div class="col-xs-6 col-sm-6 col-md-2 col-lg-2 justify-content: center"> | |
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
/** | |
* Filter the "read more" excerpt string link to the post. | |
* | |
* @param string $more "Read more" excerpt string. | |
* @return string (Maybe) modified "read more" excerpt string. | |
*/ | |
function wpdocs_excerpt_more( $more ) { | |
return sprintf( '<a class="read-more" href="%1$s">%2$s</a>', | |
get_permalink( get_the_ID() ), | |
__( 'Read More', 'textdomain' ) |
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
/** | |
* Filter the except length to 10 words. | |
* | |
* @param int $length Excerpt length. | |
* @return int (Maybe) modified excerpt length. | |
*/ | |
function wpdocs_custom_excerpt_length( $length ) { | |
return 10; | |
} | |
add_filter( 'excerpt_length', 'wpdocs_custom_excerpt_length', 999 ); |
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
Advanced Code Editor | |
Deactivate | |
Enables syntax highlighting in the integrated themes and plugins source code editors with line numbers, AutoComplete and much more. Supports PHP, HTML, CSS and JS. | |
Version 2.2.7 | By BaInternet | View details | Other Plugins by this author | Plugin Support | Donate | |
Select Advanced Random Posts Widget | |
Advanced Random Posts Widget | |
Deactivate | |
Easily to display advanced random posts via shortcode or widget. |
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 | |
echo '<h6><p>'; | |
//Gather comments for a specific page/post | |
$comments = get_comments(array( | |
'post_id' => $post->ID, | |
'status' => 'approve' | |
)); | |
wp_list_comments(array( |
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
<!-- Display Number of Comment --> | |
<?php | |
$args = array( | |
'post_id' => $post->ID, // use post_id, not post_ID | |
'count' => true //return only the count | |
); | |
$comments = get_comments($args); | |
echo '<h4>REVIEW COUNT = '.$comments.'</h4>' | |
?> |
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
ACL Plugin does not have retrospective renaming of fields within the system. Pretty pointless in my eyes but if you do install ACL and then decide to rename the fields then use the database. | |
Below is from the owner on the forum. | |
------------------------------------------ | |
The best way is to edit the field and change the field name. Next, access your DB via phpMyAdmin and write some SQL to look for the old field_name and replace it with the new field_name. | |
The field name will bi found multiple times in the wp_postmeta table in the meta_name column. |
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
upstream plex-upstream { | |
# change plex-server.example.com:32400 to the hostname:port of your plex server. | |
# this can be "localhost:32400", for instance, if Plex is running on the same server as nginx. | |
server plex-server.example.com:32400; | |
} | |
server { | |
listen 80; | |
# server names for this server. |
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
The Ports Collection is a set of Makefile, patches, and description files stored in /usr/ports. This set of files is used for building and installing applications on FreeBSD, and other BSD-based operating systems. | |
This post will describe how to use portmaster, a utility for updating installed ports. portmaster is nothing more than a shell script (albeit a quite elegant and powerful one), written in /bin/sh. It does not depend upon other ports, external databases or languages, rather it’s been written in such a way as to make use of the information about a port’s dependencies, dependents, file locations and other information contained in /var/db/pkg to determine which ports to update. | |
The versions of software discussed in this post are as follows: | |
FreeBSD 11.0-RELEASE | |
portmaster-3.17.10 | |
Okay, let’s get started. All commands are issued as the root user or by simulating the root user by using the command su. Let’s make sure that the Ports Collection is updated to its most current version with the following co |
OlderNewer