Předávání parametrů v url

WordPress parametry v url automaticky „odstřihne“. Je třeba přidat do functions.php:

/—code php
function parameter_queryvars( $qvars ) {
$qvars[] = ‚yourvarname‘;
return $qvars;
}
add_filter(‚query_vars‘, ‚parameter_queryvars‘ );
\—

a následně v šabloně použít:

/—code php
global $wp_query;
if (isset($wp_query->query_vars[‚yourvarname‘])) {
print $wp_query->query_vars[‚yourvarname‘]; // něco udělej
}
\—

„Zdroj »“:https://dmjcomputerservices.com/blog/passing-url-parameters-to-a-wordpress-page/

Hueman

„Hueman“:https://cs.wordpress.org/themes/hueman/. Moderní, responzivní třísloupcové téma. „Web šablony“:http://presscustomizr.com/hueman/. A „čeština“:http://musilda.cz/wp-content/uploads/2014/01/cs_languages.zip.

„Demo »“:http://demo-hueman.presscustomizr.com/

[* https://i0.wp.com/themes.svn.wordpress.org/hueman/3.2.9/screenshot.png?w=600&strip=all *]

 

Rowling

„Rowling“:https://wordpress.org/themes/rowling/ is a clean, simple and elegant magazine theme for WordPress. It features a responsive design, great typography, two menu locations, social menu support, custom accent color support, custom logo support, gallery post format support, editor style support, a Flickr widget and recent posts and recent comments widgets with thumbnails.

 
[* https://i0.wp.com/themes.svn.wordpress.org/rowling/1.05/screenshot.png?w=600&strip=all *]

 

Publikování existujících příspěvků na Twitter a LinkedIn

**Revive Old Post**
„https://wordpress.org/plugins/tweet-old-post/“:https://wordpress.org/plugins/tweet-old-post/

This plugin helps you to keeps your old posts alive by sharing them and driving more traffic to them from social networks. You can set time and no of posts to share to drive more traffic.

– Share new and old posts.
– Choose the time between posts.
– Choose the number of posts to share.
– Use hashtags to focus on topics.
– Include links back to your site.
– Exclude categories
– Exclude specific posts.

Staging

**WP Staging – DB & File Duplicator & Migration**
„https://wordpress.org/plugins/wp-staging/“:https://wordpress.org/plugins/wp-staging/

This duplicator plugin allows you to create an staging or development environment in seconds.

It creates a file clone of your website into a subfolder of your current WordPress installation with an entire copy of your database. This sounds pretty simple and yes it is! All the hard time consumptive database and file copy stuff including url replacements is done in the background.

Skloňování počtu komentářů

Buď pluginem **České komentáře**
„https://wordpress.org/plugins-wp/ceske-komentare/“:https://wordpress.org/plugins-wp/ceske-komentare/

V jednoduché administraci můžete nastavit své vlastní řetězce pro určitý počet komentářů.

A nebo přidáním vlastní funkce do functions.php:

/—code php
function pocetKomentaru(){
$pocetKomentaru = get_comments_number();
if(comments_open()){
if($pocetKomentaru == 0) $komentText = „Žádné komentáře“;
elseif($pocetKomentaru == 1) $komentText = „1 komentář“;
elseif($pocetKomentaru < 5) $komentText = $pocetKomentaru . " komentáře"; else $komentText = $pocetKomentaru . " komentářů"; return "„. $komentText.“„;
}
else return „Komentáře byly vypnuty“;
}
\—

„Zdroj »“:http://wordpress-sensei.cz/preklad-poctu-komentaru/

RSS agregátor

**FeedWordPress**
„https://cs.wordpress.org/plugins/feedwordpress/“:https://cs.wordpress.org/plugins/feedwordpress/

FeedWordPress is an Atom/RSS aggregator for WordPress. It syndicates content from feeds that you choose into your WordPress weblog; the content it syndicates appears as a series of special posts in your WordPress posts database.

Alternativy:

**WP RSS Aggregator**
„https://wordpress.org/plugins/wp-rss-aggregator/“:https://wordpress.org/plugins/wp-rss-aggregator/

Plugin for easily importing, merging and displaying RSS and Atom feeds on your WordPress site.

**MyCurator Content Curation**
„https://wordpress.org/plugins/mycurator/“:https://wordpress.org/plugins/mycurator/

Combines content aggregation and curation. Content is delivered via RSS feeds, and you can curate articles from those or find others manually. When you choose an article, MyCurator will pre-fill a post with some of its info, enabling you to edit.

**WPeMatico**
„https://wordpress.org/plugins/wpematico/“:https://wordpress.org/plugins/wpematico/

A very easy to use autoblogging plugin. Organized into campaigns, it publishes your posts automatically from the RSS/Atom feeds of your choice.

**RSS Post Importer**
„https://wordpress.org/plugins/rss-post-importer/“:https://wordpress.org/plugins/rss-post-importer/

Plugin for Syndicating, Importing, Curating, Merging and Displaying Full Text RSS and Atom feeds on your WordPress Blog.

Generování testovacího obsahu nového webu

**FakerPress**
„https://wordpress.org/plugins/fakerpress/“:https://wordpress.org/plugins/fakerpress/

FakerPress is a clean way to generate fake and dummy content to your WordPress, great for developers who need testing.

– Posts
– Custom Post Types
– Meta Data
– Featured Image
– Users
– Tags
– Categories
– Comments

Vícenásobné řazení v QUERY podle custom fields

/—code php
$q = new WP_Query( array(
‚meta_query‘ => array(
‚relation‘ => ‚AND‘,
‚state_clause‘ => array(
‚key‘ => ‚state‘,
‚value‘ => ‚Wisconsin‘,
),
‚city_clause‘ => array(
‚key‘ => ‚city‘,
‚compare‘ => ‚EXISTS‘,
),
),
‚orderby‘ => array(
‚city_clause‘ => ‚ASC‘,
‚state_clause‘ => ‚DESC‘,
),
) );
\—

„Zdroj »“:https://make.wordpress.org/core/2015/03/30/query-improvements-in-wp-4-2-orderby-and-meta_query/

Jednoduché nastavení SSL

**Really Simple SSL**
„https://wordpress.org/plugins/really-simple-ssl/“:https://wordpress.org/plugins/really-simple-ssl/

The really simple ssl plugin automatically detects your settings and configures your website. To keep it lightweight, the options are kept to a minimum. The entire site will move to SSL.
Three simple steps for setup:

– Get an SSL certificate
– Activate this plugin
– Enable SSL with one click