<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[wp-admin in maniera diversa]]></title><description><![CDATA[<p dir="auto">Ciao forum, come forse ben sapete, alle aziende piace o forse più per un aspetto professionale, avere un link dedicato per accedere al proprio sito. Nel caso di Wordpress, nell'area riservata si accede tramite dominio(.)com/wp-admin. Esistono però plugin che cambiano quel wp-admin e mettono tipo non so qualcosa come nome azienda ecc. Ora mi son chiesto se è possibile fare tutto ciò senza un plugin dedicato e ho scoperto che facendo un redirect via htaccess al /wp-admin wwwdominio(.)com/nomeaziendax con disallow poi ovviamente per l'intera area wp-admin tramite file robot. Volevo sapere... può aver senso ed è corretto farlo in questo modo?﻿</p>
]]></description><link>https://dev.connect.gt/topic/208433/wp-admin-in-maniera-diversa</link><generator>RSS for Node</generator><lastBuildDate>Wed, 25 Nov 2026 22:34:53 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/208433.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Nov 2014 12:45:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to wp-admin in maniera diversa on Fri, 28 Nov 2014 14:08:24 GMT]]></title><description><![CDATA[<p dir="auto">Inviati in questo momento. Gentilissimo.</p>
]]></description><link>https://dev.connect.gt/post/1180393</link><guid isPermaLink="true">https://dev.connect.gt/post/1180393</guid><dc:creator><![CDATA[mickyhood]]></dc:creator><pubDate>Fri, 28 Nov 2014 14:08:24 GMT</pubDate></item><item><title><![CDATA[Reply to wp-admin in maniera diversa on Fri, 28 Nov 2014 12:08:57 GMT]]></title><description><![CDATA[<p dir="auto">Mandami i tre file zippati qui: info(@)mygraphicsweb(.)it</p>
]]></description><link>https://dev.connect.gt/post/1180382</link><guid isPermaLink="true">https://dev.connect.gt/post/1180382</guid><dc:creator><![CDATA[ultima]]></dc:creator><pubDate>Fri, 28 Nov 2014 12:08:57 GMT</pubDate></item><item><title><![CDATA[Reply to wp-admin in maniera diversa on Fri, 28 Nov 2014 11:14:59 GMT]]></title><description><![CDATA[<p dir="auto">Aggiornamento, non mi funziona ma ovviamente sbaglio qualcosa. Ti copincollo cosa ho fatto:<br />
<strong>wp-config.php</strong>:</p>
<p dir="auto">&lt;?php<br />
/**</p>
<ul>
<li>Il file base di configurazione di WordPress.. eccetera.</li>
<li></li>
<li>@package WordPress<br />
*/</li>
</ul>
<p dir="auto">// ** Impostazioni MySQL - E? possibile ottenere questoe informazioni<br />
// ** dal proprio fornitore di hosting ** //<br />
/** Il nome del database di WordPress <em>/<br />
define('DB_NAME', '</em>******');</p>
<p dir="auto">/** Nome utente del database MySQL */<br />
define('DB_USER', '********');</p>
<p dir="auto">/** Password del database MySQL */<br />
define('DB_PASSWORD', '');</p>
<p dir="auto">/** Hostname MySQL  */<br />
define('DB_HOST', '********');</p>
<p dir="auto">/** Charset del Database da utilizare nella creazione delle tabelle. */<br />
define('DB_CHARSET', 'utf8');</p>
<p dir="auto">/** Il tipo di Collazione del Database. Da non modificare se non si ha<br />
idea di cosa sia. */<br />
define('DB_COLLATE', '');</p>
<p dir="auto">/**#@+</p>
<ul>
<li>Chiavi Univoche di Autenticazione e di Salatura.</li>
<li></li>
<li>Modificarle con frasi univoche differenti!</li>
<li>E' possibile generare tali chiavi utilizzando {sitobalalalala}</li>
<li>E' possibile cambiare queste chiavi in qualsiasi momento, per invalidare tuttii cookie esistenti. Ciò forzerà tutti gli utenti ad effettuare nuovamente il login.</li>
<li></li>
<li>@since 2.6.0<br />
<em>/<br />
define('AUTH_KEY',         'g~8$ZTijqx;(y2;7mnsPlKo{8dH#y_ ;EAv-q6NEOT{g7)6mV&gt;P9SdELrb6AACkr');<br />
define('SECURE_AUTH_KEY',  ':9Yd]ge!k<code>Ynh8eg/p]./5w3aW[POd9$7=</code>$Dq/^y#QzN#k:g|I^5g jcgt5P|&lt;)');<br />
define('LOGGED_IN_KEY',    '<em>Q}sH&amp;^/7nC$%1O74IN</em>--&amp;N2CKj}g|)1AsB{r/9.W={Ps+!Y-Um~68t&lt;X}ixZU+');<br />
define('NONCE_KEY',        'BjV2D-cK65</em>d rKAv&lt;kLbxRO@pGhQ](GN.NOPXrH)||Ii,TL&amp;xK]nGNNBlWr<code>:EW'); define('AUTH_SALT',        '[r-m)^|?I&gt;fYCgR7^JbfI+3-c2)5/752L+~O~j0&gt;qYi5oLO!H&gt;nv&gt;]O</code>1-P?~G&amp;3');<br />
define('SECURE_AUTH_SALT', 'dS0@<code>}wj,pTSp(-O&gt;#]{SNJnR_kFJFLf8*~$TtLTz{ju@ci*&gt;t}|7I+oBjh]g&lt;VL'); define('LOGGED_IN_SALT',   'd|w&amp;0xXQPusJZR5n6m{+@ &amp;D9DCkh](Q0D|KIr71-P!T:x,+m+Q2^L_5X.[5&amp;n4K'); define('NONCE_SALT',       '#J?U t(</code>X/-!Q po+.Jis+mK(@HEVp;BYG&gt;gBe~~.r0zbqd/J$-Ztl$T}gR2IlI;');<br />
define('WP_ADMIN_DIR', 'cartellasegreta');<br />
define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH . WP_ADMIN_DIR);</li>
</ul>
<p dir="auto">/**#@-*/</p>
<p dir="auto">/**</p>
<ul>
<li>Prefisso Tabella del Database WordPress .</li>
<li></li>
<li>E' possibile avere installazioni multiple su di un unico database if you give each a unique</li>
<li>fornendo a ciascuna installazione un prefisso univoco.</li>
<li>Solo numeri, lettere e sottolineatura!<br />
*/<br />
$table_prefix  = 'wp_';</li>
</ul>
<p dir="auto">/**</p>
<ul>
<li>Per gli sviluppatori: modalità di debug di WordPress.</li>
<li></li>
<li>Modificare questa voce a TRUE per abilitare la visualizzazione degli avvisi</li>
<li>durante lo sviluppo.</li>
<li>E' fortemente raccomandato agli svilupaptori di temi e plugin di utilizare</li>
<li>WP_DEBUG all'interno dei loro ambienti di sviluppo.<br />
*/<br />
define('WP_DEBUG', false);</li>
</ul>
<p dir="auto">/* Finito, interrompere le modifiche! Buon blogging. */</p>
<p dir="auto">/** Path assoluto alla directory di WordPress. */<br />
if ( !defined('ABSPATH') )<br />
define('ABSPATH', dirname(<strong>FILE</strong>) . '/');</p>
<p dir="auto">/** Imposta lle variabili di WordPress ed include i file. */<br />
require_once(ABSPATH . 'wp-settings.php');</p>
<p dir="auto"><strong>File function.php</strong>:</p>
<p dir="auto">&lt;?php<br />
/**</p>
<ul>
<li>Twenty Fourteen functions and definitions</li>
<li></li>
<li>Set up the theme and provides some helper functions, which are used in the</li>
<li>theme as custom template tags. Others are attached to action and filter</li>
<li>hooks in WordPress to change core functionality.</li>
<li></li>
<li>When using a child theme you can override certain functions (those wrapped</li>
<li>in a function_exists() call) by defining them first in your child theme's</li>
<li>functions.php file. The child theme's functions.php file is included before</li>
<li>the parent theme's file, so the child theme functions would be used.</li>
<li></li>
<li><a class="plugin-mentions-user plugin-mentions-a" href="/user/link" aria-label="Profile: link">@<bdi>link</bdi></a></li>
<li><a class="plugin-mentions-user plugin-mentions-a" href="/user/link" aria-label="Profile: link">@<bdi>link</bdi></a></li>
<li></li>
<li>Functions that are not pluggable (not wrapped in function_exists()) are</li>
<li>instead attached to a filter or action hook.</li>
<li></li>
<li>For more information on hooks, actions, and filters,</li>
<li><a class="plugin-mentions-user plugin-mentions-a" href="/user/link" aria-label="Profile: link">@<bdi>link</bdi></a> plguinapi</li>
<li></li>
<li>@package WordPress</li>
<li>@subpackage Twenty_Fourteen</li>
<li>@since Twenty Fourteen 1.0<br />
*/</li>
</ul>
<p dir="auto">/**</p>
<ul>
<li>Set up the content width value based on the theme's design.</li>
<li></li>
<li>@see twentyfourteen_content_width()</li>
<li></li>
<li>@since Twenty Fourteen 1.0<br />
*/<br />
if ( ! isset( $content_width ) ) {<br />
$content_width = 474;<br />
}</li>
</ul>
<p dir="auto">/**</p>
<ul>
<li>Twenty Fourteen only works in WordPress 3.6 or later.<br />
*/<br />
if ( version_compare( $GLOBALS['wp_version'], '3.6', '&lt;' ) ) {<br />
require get_template_directory() . '/inc/back-compat.php';<br />
}</li>
</ul>
<p dir="auto">if ( ! function_exists( 'twentyfourteen_setup' ) ) :<br />
/**</p>
<ul>
<li>
<p dir="auto">Twenty Fourteen setup.</p>
</li>
<li></li>
<li>
<p dir="auto">Set up theme defaults and registers support for various WordPress features.</p>
</li>
<li></li>
<li>
<p dir="auto">Note that this function is hooked into the after_setup_theme hook, which</p>
</li>
<li>
<p dir="auto">runs before the init hook. The init hook is too late for some features, such</p>
</li>
<li>
<p dir="auto">as indicating support post thumbnails.</p>
</li>
<li></li>
<li>
<p dir="auto">@since Twenty Fourteen 1.0<br />
*/<br />
function twentyfourteen_setup() {</p>
<p dir="auto">/*</p>
<ul>
<li>Make Twenty Fourteen available for translation.</li>
<li></li>
<li>Translations can be added to the /languages/ directory.</li>
<li>If you're building a theme based on Twenty Fourteen, use a find and</li>
<li>replace to change 'twentyfourteen' to the name of your theme in all</li>
<li>template files.<br />
*/<br />
load_theme_textdomain( 'twentyfourteen', get_template_directory() . '/languages' );</li>
</ul>
<p dir="auto">// This theme styles the visual editor to resemble the theme style.<br />
add_editor_style( array( 'css/editor-style.css', twentyfourteen_font_url(), 'genericons/genericons.css' ) );</p>
<p dir="auto">// Add RSS feed links to &lt;head&gt; for posts and comments.<br />
add_theme_support( 'automatic-feed-links' );</p>
<p dir="auto">// Enable support for Post Thumbnails, and declare two sizes.<br />
add_theme_support( 'post-thumbnails' );<br />
set_post_thumbnail_size( 672, 372, true );<br />
add_image_size( 'twentyfourteen-full-width', 1038, 576, true );</p>
<p dir="auto">// This theme uses wp_nav_menu() in two locations.<br />
register_nav_menus( array(<br />
'primary'   =&gt; __( 'Top primary menu', 'twentyfourteen' ),<br />
'secondary' =&gt; __( 'Secondary menu in left sidebar', 'twentyfourteen' ),<br />
) );</p>
<p dir="auto">/*</p>
<ul>
<li>Switch default core markup for search form, comment form, and comments</li>
<li>to output valid HTML5.<br />
*/<br />
add_theme_support( 'html5', array(<br />
'search-form', 'comment-form', 'comment-list', 'gallery', 'caption'<br />
) );</li>
</ul>
<p dir="auto">/*</p>
<ul>
<li>Enable support for Post Formats.</li>
<li>See <a href="http://codex.wordpress.org/Post_Formats" rel="nofollow ugc">codex.wordpress.org/Post_Formats</a><br />
*/<br />
add_theme_support( 'post-formats', array(<br />
'aside', 'image', 'video', 'audio', 'quote', 'link', 'gallery',<br />
) );</li>
</ul>
<p dir="auto">// This theme allows users to set a custom background.<br />
add_theme_support( 'custom-background', apply_filters( 'twentyfourteen_custom_background_args', array(<br />
'default-color' =&gt; 'f5f5f5',<br />
) ) );</p>
<p dir="auto">// Add support for featured content.<br />
add_theme_support( 'featured-content', array(<br />
'featured_content_filter' =&gt; 'twentyfourteen_get_featured_posts',<br />
'max_posts' =&gt; 6,<br />
) );</p>
<p dir="auto">// This theme uses its own gallery styles.<br />
add_filter( 'use_default_gallery_style', '__return_false' );<br />
}<br />
endif; // twentyfourteen_setup<br />
add_action( 'after_setup_theme', 'twentyfourteen_setup' );</p>
</li>
</ul>
<p dir="auto">/**</p>
<ul>
<li>Adjust content_width value for image attachment template.</li>
<li></li>
<li>@since Twenty Fourteen 1.0<br />
*/<br />
function twentyfourteen_content_width() {<br />
if ( is_attachment() &amp;&amp; wp_attachment_is_image() ) {<br />
$GLOBALS['content_width'] = 810;<br />
}<br />
}<br />
add_action( 'template_redirect', 'twentyfourteen_content_width' );</li>
</ul>
<p dir="auto">/**</p>
<ul>
<li>Getter function for Featured Content Plugin.</li>
<li></li>
<li>@since Twenty Fourteen 1.0</li>
<li></li>
<li><a class="plugin-mentions-user plugin-mentions-a" href="/user/return" aria-label="Profile: return">@<bdi>return</bdi></a> array An array of WP_Post objects.<br />
<em>/<br />
function twentyfourteen_get_featured_posts() {<br />
/</em>*
<ul>
<li>Filter the featured posts to return in Twenty Fourteen.</li>
<li></li>
<li>@since Twenty Fourteen 1.0</li>
<li></li>
<li>@param array|bool $posts Array of featured posts, otherwise false.<br />
*/<br />
return apply_filters( 'twentyfourteen_get_featured_posts', array() );<br />
}</li>
</ul>
</li>
</ul>
<p dir="auto">/**</p>
<ul>
<li>A helper conditional function that returns a boolean value.</li>
<li></li>
<li>@since Twenty Fourteen 1.0</li>
<li></li>
<li><a class="plugin-mentions-user plugin-mentions-a" href="/user/return" aria-label="Profile: return">@<bdi>return</bdi></a> bool Whether there are featured posts.<br />
*/<br />
function twentyfourteen_has_featured_posts() {<br />
return ! is_paged() &amp;&amp; (bool) twentyfourteen_get_featured_posts();<br />
}</li>
</ul>
<p dir="auto">/**</p>
<ul>
<li>
<p dir="auto">Register three Twenty Fourteen widget areas.</p>
</li>
<li></li>
<li>
<p dir="auto">@since Twenty Fourteen 1.0<br />
*/<br />
function twentyfourteen_widgets_init() {<br />
require get_template_directory() . '/inc/widgets.php';<br />
register_widget( 'Twenty_Fourteen_Ephemera_Widget' );</p>
<p dir="auto">register_sidebar( array(<br />
'name'          =&gt; __( 'Primary Sidebar', 'twentyfourteen' ),<br />
'id'            =&gt; 'sidebar-1',<br />
'description'   =&gt; __( 'Main sidebar that appears on the left.', 'twentyfourteen' ),<br />
'before_widget' =&gt; '&lt;aside id="%1$s" class="widget %2$s"&gt;',<br />
'after_widget'  =&gt; '&lt;/aside&gt;',<br />
'before_title'  =&gt; '&lt;h1 class="widget-title"&gt;',<br />
'after_title'   =&gt; '&lt;/h1&gt;',<br />
) );<br />
register_sidebar( array(<br />
'name'          =&gt; __( 'Content Sidebar', 'twentyfourteen' ),<br />
'id'            =&gt; 'sidebar-2',<br />
'description'   =&gt; __( 'Additional sidebar that appears on the right.', 'twentyfourteen' ),<br />
'before_widget' =&gt; '&lt;aside id="%1$s" class="widget %2$s"&gt;',<br />
'after_widget'  =&gt; '&lt;/aside&gt;',<br />
'before_title'  =&gt; '&lt;h1 class="widget-title"&gt;',<br />
'after_title'   =&gt; '&lt;/h1&gt;',<br />
) );<br />
register_sidebar( array(<br />
'name'          =&gt; __( 'Footer Widget Area', 'twentyfourteen' ),<br />
'id'            =&gt; 'sidebar-3',<br />
'description'   =&gt; __( 'Appears in the footer section of the site.', 'twentyfourteen' ),<br />
'before_widget' =&gt; '&lt;aside id="%1$s" class="widget %2$s"&gt;',<br />
'after_widget'  =&gt; '&lt;/aside&gt;',<br />
'before_title'  =&gt; '&lt;h1 class="widget-title"&gt;',<br />
'after_title'   =&gt; '&lt;/h1&gt;',<br />
) );<br />
}<br />
add_action( 'widgets_init', 'twentyfourteen_widgets_init' );</p>
</li>
</ul>
<p dir="auto">/**</p>
<ul>
<li>
<p dir="auto">Register Lato Google font for Twenty Fourteen.</p>
</li>
<li></li>
<li>
<p dir="auto">@since Twenty Fourteen 1.0</p>
</li>
<li></li>
<li>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/return" aria-label="Profile: return">@<bdi>return</bdi></a> string<br />
<em>/<br />
function twentyfourteen_font_url() {<br />
$font_url = '';<br />
/</em></p>
<ul>
<li>Translators: If there are characters in your language that are not supported</li>
<li>by Lato, translate this to 'off'. Do not translate into your own language.<br />
*/<br />
if ( 'off' !== _x( 'on', 'Lato font: on or off', 'twentyfourteen' ) ) {<br />
$font_url = add_query_arg( 'family', urlencode( 'Lato:300,400,700,900,300italic,400italic,700italic' ), "<a href="//fonts.googleapis.com/css" rel="nofollow ugc">//fonts.googleapis.com/css</a>" );<br />
}</li>
</ul>
<p dir="auto">return $font_url;<br />
}</p>
</li>
</ul>
<p dir="auto">/**</p>
<ul>
<li>
<p dir="auto">Enqueue scripts and styles for the front end.</p>
</li>
<li></li>
<li>
<p dir="auto">@since Twenty Fourteen 1.0<br />
*/<br />
function twentyfourteen_scripts() {<br />
// Add Lato font, used in the main stylesheet.<br />
wp_enqueue_style( 'twentyfourteen-lato', twentyfourteen_font_url(), array(), null );</p>
<p dir="auto">// Add Genericons font, used in the main stylesheet.<br />
wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.0.3' );</p>
<p dir="auto">// Load our main stylesheet.<br />
wp_enqueue_style( 'twentyfourteen-style', get_stylesheet_uri(), array( 'genericons' ) );</p>
<p dir="auto">// Load the Internet Explorer specific stylesheet.<br />
wp_enqueue_style( 'twentyfourteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfourteen-style', 'genericons' ), '20131205' );<br />
wp_style_add_data( 'twentyfourteen-ie', 'conditional', 'lt IE 9' );</p>
<p dir="auto">if ( is_singular() &amp;&amp; comments_open() &amp;&amp; get_option( 'thread_comments' ) ) {<br />
wp_enqueue_script( 'comment-reply' );<br />
}</p>
<p dir="auto">if ( is_singular() &amp;&amp; wp_attachment_is_image() ) {<br />
wp_enqueue_script( 'twentyfourteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20130402' );<br />
}</p>
<p dir="auto">if ( is_active_sidebar( 'sidebar-3' ) ) {<br />
wp_enqueue_script( 'jquery-masonry' );<br />
}</p>
<p dir="auto">if ( is_front_page() &amp;&amp; 'slider' == get_theme_mod( 'featured_content_layout' ) ) {<br />
wp_enqueue_script( 'twentyfourteen-slider', get_template_directory_uri() . '/js/slider.js', array( 'jquery' ), '20131205', true );<br />
wp_localize_script( 'twentyfourteen-slider', 'featuredSliderDefaults', array(<br />
'prevText' =&gt; __( 'Previous', 'twentyfourteen' ),<br />
'nextText' =&gt; __( 'Next', 'twentyfourteen' )<br />
) );<br />
}</p>
<p dir="auto">wp_enqueue_script( 'twentyfourteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20140616', true );<br />
}<br />
add_action( 'wp_enqueue_scripts', 'twentyfourteen_scripts' );</p>
</li>
</ul>
<p dir="auto">/**</p>
<ul>
<li>Enqueue Google fonts style to admin screen for custom header display.</li>
<li></li>
<li>@since Twenty Fourteen 1.0<br />
*/<br />
function twentyfourteen_admin_fonts() {<br />
wp_enqueue_style( 'twentyfourteen-lato', twentyfourteen_font_url(), array(), null );<br />
}<br />
add_action( 'admin_print_scripts-appearance_page_custom-header', 'twentyfourteen_admin_fonts' );</li>
</ul>
<p dir="auto">if ( ! function_exists( 'twentyfourteen_the_attached_image' ) ) :<br />
/**</p>
<ul>
<li>
<p dir="auto">Print the attached image with a link to the next attached image.</p>
</li>
<li></li>
<li>
<p dir="auto">@since Twenty Fourteen 1.0<br />
<em>/<br />
function twentyfourteen_the_attached_image() {<br />
$post                = get_post();<br />
/</em>*</p>
<ul>
<li>Filter the default Twenty Fourteen attachment size.</li>
<li></li>
<li>@since Twenty Fourteen 1.0</li>
<li></li>
<li>@param array $dimensions {</li>
<li>
<pre><code>An array of height and width dimensions.
</code></pre>
</li>
<li></li>
<li>
<pre><code>@type int $height Height of the image in pixels. Default 810.
</code></pre>
</li>
<li>
<pre><code>@type int $width  Width of the image in pixels. Default 810.
</code></pre>
</li>
<li>}<br />
*/<br />
$attachment_size     = apply_filters( 'twentyfourteen_attachment_size', array( 810, 810 ) );<br />
$next_attachment_url = wp_get_attachment_url();</li>
</ul>
<p dir="auto">/*</p>
<ul>
<li>Grab the IDs of all the image attachments in a gallery so we can get the URL</li>
<li>of the next adjacent image in a gallery, or the first image (if we're</li>
<li>looking at the last image in a gallery), or, in a gallery of one, just the</li>
<li>link to that image file.<br />
*/<br />
$attachment_ids = get_posts( array(<br />
'post_parent'    =&gt; $post-&gt;post_parent,<br />
'fields'         =&gt; 'ids',<br />
'numberposts'    =&gt; -1,<br />
'post_status'    =&gt; 'inherit',<br />
'post_type'      =&gt; 'attachment',<br />
'post_mime_type' =&gt; 'image',<br />
'order'          =&gt; 'ASC',<br />
'orderby'        =&gt; 'menu_order ID',<br />
) );</li>
</ul>
<p dir="auto">// If there is more than 1 attachment in a gallery...<br />
if ( count( $attachment_ids ) &gt; 1 ) {<br />
foreach ( $attachment_ids as $attachment_id ) {<br />
if ( $attachment_id == $post-&gt;ID ) {<br />
$next_id = current( $attachment_ids );<br />
break;<br />
}<br />
}</p>
<pre><code> // get the URL of the next image attachment...
 if ( $next_id ) {
 	$next_attachment_url = get_attachment_link( $next_id );
 }


 // or get the URL of the first image attachment.
 else {
 	$next_attachment_url = get_attachment_link( array_shift( $attachment_ids ) );
 }
</code></pre>
<p dir="auto">}</p>
<p dir="auto">printf( '&lt;a href="%1$s" rel="attachment"&gt;%2$s&lt;/a&gt;',<br />
esc_url( $next_attachment_url ),<br />
wp_get_attachment_image( $post-&gt;ID, $attachment_size )<br />
);<br />
}<br />
endif;</p>
</li>
</ul>
<p dir="auto">if ( ! function_exists( 'twentyfourteen_list_authors' ) ) :<br />
/**</p>
<ul>
<li>
<p dir="auto">Print a list of all site contributors who published at least one post.</p>
</li>
<li></li>
<li>
<p dir="auto">@since Twenty Fourteen 1.0<br />
*/<br />
function twentyfourteen_list_authors() {<br />
$contributor_ids = get_users( array(<br />
'fields'  =&gt; 'ID',<br />
'orderby' =&gt; 'post_count',<br />
'order'   =&gt; 'DESC',<br />
'who'     =&gt; 'authors',<br />
) );</p>
<p dir="auto">foreach ( $contributor_ids as $contributor_id ) :<br />
$post_count = count_user_posts( $contributor_id );</p>
<pre><code> // Move on if user has not published a post (yet).
 if ( ! $post_count ) {
 	continue;
 }
</code></pre>
<p dir="auto">?&gt;</p>
<p dir="auto">&lt;div class="contributor"&gt;<br />
&lt;div class="contributor-info"&gt;<br />
&lt;div class="contributor-avatar"&gt;&lt;?php echo get_avatar( $contributor_id, 132 ); ?&gt;&lt;/div&gt;<br />
&lt;div class="contributor-summary"&gt;<br />
&lt;h2 class="contributor-name"&gt;&lt;?php echo get_the_author_meta( 'display_name', $contributor_id ); ?&gt;&lt;/h2&gt;<br />
&lt;p class="contributor-bio"&gt;<br />
&lt;?php echo get_the_author_meta( 'description', $contributor_id ); ?&gt;<br />
&lt;/p&gt;<br />
&lt;a class="button contributor-posts-link" href="&lt;?php echo esc_url( get_author_posts_url( $contributor_id ) ); ?&gt;"&gt;<br />
&lt;?php printf( _n( '%d Article', '%d Articles', $post_count, 'twentyfourteen' ), $post_count ); ?&gt;<br />
&lt;/a&gt;<br />
&lt;/div&gt;&lt;!-- .contributor-summary --&gt;<br />
&lt;/div&gt;&lt;!-- .contributor-info --&gt;<br />
&lt;/div&gt;&lt;!-- .contributor --&gt;</p>
<p dir="auto">&lt;?php<br />
endforeach;<br />
}<br />
endif;</p>
</li>
</ul>
<p dir="auto">/**</p>
<ul>
<li>
<p dir="auto">Extend the default WordPress body classes.</p>
</li>
<li></li>
<li>
<p dir="auto">Adds body classes to denote:</p>
</li>
<li>
<ol>
<li>Single or multiple authors.</li>
</ol>
</li>
<li>
<ol start="2">
<li>Presence of header image except in Multisite signup and activate pages.</li>
</ol>
</li>
<li>
<ol start="3">
<li>Index views.</li>
</ol>
</li>
<li>
<ol start="4">
<li>Full-width content layout.</li>
</ol>
</li>
<li>
<ol start="5">
<li>Presence of footer widgets.</li>
</ol>
</li>
<li>
<ol start="6">
<li>Single views.</li>
</ol>
</li>
<li>
<ol start="7">
<li>Featured content layout.</li>
</ol>
</li>
<li></li>
<li>
<p dir="auto">@since Twenty Fourteen 1.0</p>
</li>
<li></li>
<li>
<p dir="auto">@param array $classes A list of existing body class values.</p>
</li>
<li>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/return" aria-label="Profile: return">@<bdi>return</bdi></a> array The filtered body class list.<br />
*/<br />
function twentyfourteen_body_classes( $classes ) {<br />
if ( is_multi_author() ) {<br />
$classes[] = 'group-blog';<br />
}</p>
<p dir="auto">if ( get_header_image() ) {<br />
$classes[] = 'header-image';<br />
} elseif ( ! in_array( $GLOBALS['pagenow'], array( 'wp-activate.php', 'wp-signup.php' ) ) ) {<br />
$classes[] = 'masthead-fixed';<br />
}</p>
<p dir="auto">if ( is_archive() || is_search() || is_home() ) {<br />
$classes[] = 'list-view';<br />
}</p>
<p dir="auto">if ( ( ! is_active_sidebar( 'sidebar-2' ) )<br />
|| is_page_template( 'page-templates/full-width.php' )<br />
|| is_page_template( 'page-templates/contributors.php' )<br />
|| is_attachment() ) {<br />
$classes[] = 'full-width';<br />
}</p>
<p dir="auto">if ( is_active_sidebar( 'sidebar-3' ) ) {<br />
$classes[] = 'footer-widgets';<br />
}</p>
<p dir="auto">if ( is_singular() &amp;&amp; ! is_front_page() ) {<br />
$classes[] = 'singular';<br />
}</p>
<p dir="auto">if ( is_front_page() &amp;&amp; 'slider' == get_theme_mod( 'featured_content_layout' ) ) {<br />
$classes[] = 'slider';<br />
} elseif ( is_front_page() ) {<br />
$classes[] = 'grid';<br />
}</p>
<p dir="auto">return $classes;<br />
}<br />
add_filter( 'body_class', 'twentyfourteen_body_classes' );</p>
</li>
</ul>
<p dir="auto">/**</p>
<ul>
<li>
<p dir="auto">Extend the default WordPress post classes.</p>
</li>
<li></li>
<li>
<p dir="auto">Adds a post class to denote:</p>
</li>
<li>
<p dir="auto">Non-password protected page with a post thumbnail.</p>
</li>
<li></li>
<li>
<p dir="auto">@since Twenty Fourteen 1.0</p>
</li>
<li></li>
<li>
<p dir="auto">@param array $classes A list of existing post class values.</p>
</li>
<li>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/return" aria-label="Profile: return">@<bdi>return</bdi></a> array The filtered post class list.<br />
*/<br />
function twentyfourteen_post_classes( $classes ) {<br />
if ( ! post_password_required() &amp;&amp; ! is_attachment() &amp;&amp; has_post_thumbnail() ) {<br />
$classes[] = 'has-post-thumbnail';<br />
}</p>
<p dir="auto">return $classes;<br />
}<br />
add_filter( 'post_class', 'twentyfourteen_post_classes' );</p>
</li>
</ul>
<p dir="auto">/**</p>
<ul>
<li>
<p dir="auto">Create a nicely formatted and more specific title element text for output</p>
</li>
<li>
<p dir="auto">in head of document, based on current view.</p>
</li>
<li></li>
<li>
<p dir="auto">@since Twenty Fourteen 1.0</p>
</li>
<li></li>
<li>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/global" aria-label="Profile: global">@<bdi>global</bdi></a> int $paged WordPress archive pagination page count.</p>
</li>
<li>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/global" aria-label="Profile: global">@<bdi>global</bdi></a> int $page  WordPress paginated post page count.</p>
</li>
<li></li>
<li>
<p dir="auto">@param string $title Default title text for current view.</p>
</li>
<li>
<p dir="auto">@param string $sep Optional separator.</p>
</li>
<li>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/return" aria-label="Profile: return">@<bdi>return</bdi></a> string The filtered title.<br />
*/<br />
function twentyfourteen_wp_title( $title, $sep ) {<br />
global $paged, $page;</p>
<p dir="auto">if ( is_feed() ) {<br />
return $title;<br />
}</p>
<p dir="auto">// Add the site name.<br />
$title .= get_bloginfo( 'name', 'display' );</p>
<p dir="auto">// Add the site description for the home/front page.<br />
$site_description = get_bloginfo( 'description', 'display' );<br />
if ( $site_description &amp;&amp; ( is_home() || is_front_page() ) ) {<br />
$title = "$title $sep $site_description";<br />
}</p>
<p dir="auto">// Add a page number if necessary.<br />
if ( ( $paged &gt;= 2 || $page &gt;= 2 ) &amp;&amp; ! is_404() ) {<br />
$title = "$title $sep " . sprintf( __( 'Page %s', 'twentyfourteen' ), max( $paged, $page ) );<br />
}</p>
<p dir="auto">return $title;<br />
}<br />
add_filter( 'wp_title', 'twentyfourteen_wp_title', 10, 2 );</p>
</li>
</ul>
<p dir="auto">// Implement Custom Header features.<br />
require get_template_directory() . '/inc/custom-header.php';</p>
<p dir="auto">// Custom template tags for this theme.<br />
require get_template_directory() . '/inc/template-tags.php';</p>
<p dir="auto">// Add Theme Customizer functionality.<br />
require get_template_directory() . '/inc/customizer.php';</p>
<p dir="auto">/*</p>
<ul>
<li>Add Featured Content functionality.</li>
<li></li>
<li>To overwrite in a plugin, define your own Featured_Content class on or</li>
<li>before the 'setup_theme' hook.<br />
*/<br />
if ( ! class_exists( 'Featured_Content' ) &amp;&amp; 'plugins.php' !== $GLOBALS['pagenow'] ) {<br />
require get_template_directory() . '/inc/featured-content.php';<br />
}</li>
</ul>
<p dir="auto">add_filter('site_url',  'wpadmin_filter', 10, 3);<br />
function wpadmin_filter( $url, $path, $orig_scheme ) {<br />
$old  = array( "/(wp-admin)/");<br />
$admin_dir = WP_ADMIN_DIR;<br />
$new  = array($admin_dir);<br />
return preg_replace( $old, $new, $url, 1);<br />
}</p>
<p dir="auto"><strong>File htaccess</strong>:</p>
<h1>BEGIN WordPress</h1>
<p dir="auto">&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteRule ^cartellasegreta/(.*) wp-admin/$1?%{QUERY_STRING} [L]<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /index.php [L]<br />
&lt;/IfModule&gt;</p>
<h1>END WordPress</h1>
]]></description><link>https://dev.connect.gt/post/1180392</link><guid isPermaLink="true">https://dev.connect.gt/post/1180392</guid><dc:creator><![CDATA[mickyhood]]></dc:creator><pubDate>Fri, 28 Nov 2014 11:14:59 GMT</pubDate></item><item><title><![CDATA[Reply to wp-admin in maniera diversa on Fri, 28 Nov 2014 10:55:39 GMT]]></title><description><![CDATA[<p dir="auto">Ah ok, perfect. Ottimo dovrei provare oggi. Grazie per l'ennesima volta.</p>
]]></description><link>https://dev.connect.gt/post/1180391</link><guid isPermaLink="true">https://dev.connect.gt/post/1180391</guid><dc:creator><![CDATA[mickyhood]]></dc:creator><pubDate>Fri, 28 Nov 2014 10:55:39 GMT</pubDate></item><item><title><![CDATA[Reply to wp-admin in maniera diversa on Fri, 28 Nov 2014 10:42:57 GMT]]></title><description><![CDATA[<p dir="auto">no, no.<br />
Partiamo dal concetto che odio i plugin.<br />
Quello che ti ho detto di fare è semplice:<br />
Apri il file .htaccess.<br />
Trova la riga RewriteBase /<br />
e sostituiscila con:<br />
RewriteBase /<br />
RewriteRule ^admin/(.*) wp-admin/$1?%{QUERY_STRING} [L]</p>
<p dir="auto">Dove sostituirai la parola 'admin' con il nome che hai assegnato alla tua cartella!<br />
Ho scritto anche un articolo in merito:<br />
<a href="http://mygraphicsweb.it/rinominare-la-cartella-wp-admin-wordpress/" rel="nofollow ugc">mygraphicsweb.it/rinominare-la-cartella-wp-admin-wordpress/</a></p>
]]></description><link>https://dev.connect.gt/post/1180377</link><guid isPermaLink="true">https://dev.connect.gt/post/1180377</guid><dc:creator><![CDATA[ultima]]></dc:creator><pubDate>Fri, 28 Nov 2014 10:42:57 GMT</pubDate></item><item><title><![CDATA[Reply to wp-admin in maniera diversa on Fri, 28 Nov 2014 10:00:47 GMT]]></title><description><![CDATA[<p dir="auto">Allora, altro aggiornamento. Tu hai messo il file htaccess tramite qualche plugin o l'hai fatto a mano? Perché io uso il plugin seo yoast.</p>
]]></description><link>https://dev.connect.gt/post/1180390</link><guid isPermaLink="true">https://dev.connect.gt/post/1180390</guid><dc:creator><![CDATA[mickyhood]]></dc:creator><pubDate>Fri, 28 Nov 2014 10:00:47 GMT</pubDate></item><item><title><![CDATA[Reply to wp-admin in maniera diversa on Wed, 26 Nov 2014 19:46:01 GMT]]></title><description><![CDATA[<p dir="auto">Ok perfect. Ti faccio sapere, domani provo. Grazie mille, davvero gentile.</p>
]]></description><link>https://dev.connect.gt/post/1180389</link><guid isPermaLink="true">https://dev.connect.gt/post/1180389</guid><dc:creator><![CDATA[mickyhood]]></dc:creator><pubDate>Wed, 26 Nov 2014 19:46:01 GMT</pubDate></item><item><title><![CDATA[Reply to wp-admin in maniera diversa on Wed, 26 Nov 2014 17:50:55 GMT]]></title><description><![CDATA[<p dir="auto">si, perchè corretta.<br />
Ti basta sostituire:</p>
<p dir="auto">define('WP_ADMIN_DIR', 'secret-folder');<br />
con<br />
define('WP_ADMIN_DIR', 'tua cartella');</p>
]]></description><link>https://dev.connect.gt/post/1180376</link><guid isPermaLink="true">https://dev.connect.gt/post/1180376</guid><dc:creator><![CDATA[ultima]]></dc:creator><pubDate>Wed, 26 Nov 2014 17:50:55 GMT</pubDate></item><item><title><![CDATA[Reply to wp-admin in maniera diversa on Wed, 26 Nov 2014 17:44:01 GMT]]></title><description><![CDATA[<p dir="auto">Ok mentre la funzione del sito che mi hai dato invece, mi basta copincollare tutto nei due file giusto?</p>
]]></description><link>https://dev.connect.gt/post/1180388</link><guid isPermaLink="true">https://dev.connect.gt/post/1180388</guid><dc:creator><![CDATA[mickyhood]]></dc:creator><pubDate>Wed, 26 Nov 2014 17:44:01 GMT</pubDate></item><item><title><![CDATA[Reply to wp-admin in maniera diversa on Wed, 26 Nov 2014 17:37:36 GMT]]></title><description><![CDATA[<p dir="auto">devi cambiare:<br />
^admin/<br />
con:<br />
^nometuacartella/</p>
]]></description><link>https://dev.connect.gt/post/1180375</link><guid isPermaLink="true">https://dev.connect.gt/post/1180375</guid><dc:creator><![CDATA[ultima]]></dc:creator><pubDate>Wed, 26 Nov 2014 17:37:36 GMT</pubDate></item><item><title><![CDATA[Reply to wp-admin in maniera diversa on Wed, 26 Nov 2014 17:19:38 GMT]]></title><description><![CDATA[<p dir="auto">Ok copincollo tutto quello che mi hai messo oppure devo togliere qualcosa perché il forum non accetta magari parole strane?</p>
]]></description><link>https://dev.connect.gt/post/1180387</link><guid isPermaLink="true">https://dev.connect.gt/post/1180387</guid><dc:creator><![CDATA[mickyhood]]></dc:creator><pubDate>Wed, 26 Nov 2014 17:19:38 GMT</pubDate></item><item><title><![CDATA[Reply to wp-admin in maniera diversa on Wed, 26 Nov 2014 17:05:52 GMT]]></title><description><![CDATA[<p dir="auto">Risolto.<br />
Il sistema funziona benissimo.<br />
C'è da stare attenti solo quando si inserisce la regola nel file .htaccess.<br />
Nella mia ipotesi, ho rinominato la cartella wp-admin in admin, quindi di conseguenza la mia regola htaccess sarà diversa<br />
Comunque:<br />
aggiungi la regola, subito dopo il<br />
RewriteBase / ( o RewriteBase /nomecartella/ se WP è in una sotto directory)<br />
RewriteRule ^admin/(.*) wp-admin/$1?%{QUERY_STRING} [L]</p>
]]></description><link>https://dev.connect.gt/post/1180374</link><guid isPermaLink="true">https://dev.connect.gt/post/1180374</guid><dc:creator><![CDATA[ultima]]></dc:creator><pubDate>Wed, 26 Nov 2014 17:05:52 GMT</pubDate></item><item><title><![CDATA[Reply to wp-admin in maniera diversa on Wed, 26 Nov 2014 16:55:08 GMT]]></title><description><![CDATA[<p dir="auto">AH ok, grazie gentilissimo <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://dev.connect.gt/post/1180385</link><guid isPermaLink="true">https://dev.connect.gt/post/1180385</guid><dc:creator><![CDATA[mickyhood]]></dc:creator><pubDate>Wed, 26 Nov 2014 16:55:08 GMT</pubDate></item><item><title><![CDATA[Reply to wp-admin in maniera diversa on Wed, 26 Nov 2014 16:46:35 GMT]]></title><description><![CDATA[<p dir="auto">provo a fare il setting in quel modo e vedo cosa ne esce...se mai risolvo <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f609.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--wink" style="height:1.4em;width:auto;vertical-align:middle" title=";)" alt="😉" /></p>
]]></description><link>https://dev.connect.gt/post/1180371</link><guid isPermaLink="true">https://dev.connect.gt/post/1180371</guid><dc:creator><![CDATA[ultima]]></dc:creator><pubDate>Wed, 26 Nov 2014 16:46:35 GMT</pubDate></item><item><title><![CDATA[Reply to wp-admin in maniera diversa on Wed, 26 Nov 2014 16:25:34 GMT]]></title><description><![CDATA[<p dir="auto">Aggiornamento... ho provato con quello che dice quell'articolo ma nisba. In pratica, ho seguito tutto ma ora il mio sito mi da questo problema: Fatal error: Call to undefined function wp() in /membri/nomeutente/wp-blog-header.php on line 14.</p>
<p dir="auto">Al che vado quel file e noto che alla riga 14 c'è esattamente questo: wp();</p>
<p dir="auto">Qualcuno sa cosa dovrei fare adesso?</p>
]]></description><link>https://dev.connect.gt/post/1180386</link><guid isPermaLink="true">https://dev.connect.gt/post/1180386</guid><dc:creator><![CDATA[mickyhood]]></dc:creator><pubDate>Wed, 26 Nov 2014 16:25:34 GMT</pubDate></item><item><title><![CDATA[Reply to wp-admin in maniera diversa on Wed, 26 Nov 2014 13:44:43 GMT]]></title><description><![CDATA[<p dir="auto">Appperò direi proprio di si. Grazie mille <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--smile" style="height:1.4em;width:auto;vertical-align:middle" title=":D" alt="😄" /></p>
]]></description><link>https://dev.connect.gt/post/1180384</link><guid isPermaLink="true">https://dev.connect.gt/post/1180384</guid><dc:creator><![CDATA[mickyhood]]></dc:creator><pubDate>Wed, 26 Nov 2014 13:44:43 GMT</pubDate></item><item><title><![CDATA[Reply to wp-admin in maniera diversa on Wed, 26 Nov 2014 13:18:30 GMT]]></title><description><![CDATA[<p dir="auto">forse questo ti aiuta<br />
<a href="http://wordpress.org/support/topic/how-to-change-the-admin-url-or-wp-admin-to-secure-login" rel="nofollow ugc">wordpress.org/support/topic/how-to-change-the-admin-url-or-wp-admin-to-secure-login</a></p>
]]></description><link>https://dev.connect.gt/post/1180370</link><guid isPermaLink="true">https://dev.connect.gt/post/1180370</guid><dc:creator><![CDATA[ultima]]></dc:creator><pubDate>Wed, 26 Nov 2014 13:18:30 GMT</pubDate></item></channel></rss>