Home › Forum › Problemi Vari con WP › WordPress come genera l'index?
Visualizzazione 2 filoni di risposte
-
AutorePost
-
-
28 Ottobre 2011 alle 13:26 #19580GianArbPartecipante
Salve ho una domanda, ho creato uno script php e vorrei integrarlo nell’index del mio sito wp, attualmente nel mio sito come penso in molti altri il template nella home pubblica l’elenco degli ultimi scritti del blog.
Io ho creato uno script che recupera (utilizzo wp Mu) l’ultimo articolo scritto per ogni blog, e li ordina in ordine di data, vorrei appunto integrare questa stampa seguendo lo stile che ha la home, quindi con il css proprio del template.. Idee?
-
28 Ottobre 2011 alle 14:55 #89347SteveAglAmministratore del forum
Mdifichi il template del tuo tema per la parte che genera la index (solitamente index.php del tuo tema.. la dissezione di un tema WP sul WIKI e la gerarchia dei template sempre sul WIKI ti dovrebbero chiarire le idee…
-
29 Ottobre 2011 alle 16:26 #89367GianArbPartecipante
<?php
define( 'OT_VERSION', '1.1.7.1' );
define( 'OT_PLUGIN_DIR', TEMPLATEPATH . '/option-tree');
define( 'OT_PLUGIN_URL', get_template_directory_uri() . '/option-tree');
/**
* Required Files
*
* @since 1.0.0
*/
require_once( OT_PLUGIN_DIR . '/functions/functions.load.php' );
require_once( OT_PLUGIN_DIR . '/classes/class.admin.php' );
/**
* Instantiate Classe
*
* @since 1.0.0
*/
$ot_admin = new OT_Admin();
/**
* WordPress Activate/Deactivate
*
* @uses register_activation_hook()
* @uses register_deactivation_hook()
*
* @since 1.0.0
*/
register_activation_hook( __FILE__, array( $ot_admin, 'option_tree_activate' ) );
register_deactivation_hook( __FILE__, array( $ot_admin, 'option_tree_deactivate' ) );
/**
* Required action filters
*
* @uses add_action()
*
* @since 1.0.0
*/
add_action( 'init', array( $ot_admin, 'create_option_post' ), 5 );
add_action( 'admin_init', array( $ot_admin, 'option_tree_init' ) );
add_action( 'admin_menu', array( $ot_admin, 'option_tree_admin' ) );
add_action( 'wp_ajax_option_tree_array_save', array( $ot_admin, 'option_tree_array_save' ) );
add_action( 'wp_ajax_option_tree_array_reload', array( $ot_admin, 'option_tree_array_reload' ) );
add_action( 'wp_ajax_option_tree_array_reset', array( $ot_admin, 'option_tree_array_reset' ) );
add_action( 'wp_ajax_option_tree_add', array( $ot_admin, 'option_tree_add' ) );
add_action( 'wp_ajax_option_tree_edit', array( $ot_admin, 'option_tree_edit' ) );
add_action( 'wp_ajax_option_tree_delete', array( $ot_admin, 'option_tree_delete' ) );
add_action( 'wp_ajax_option_tree_next_id', array( $ot_admin, 'option_tree_next_id' ) );
add_action( 'wp_ajax_option_tree_sort', array( $ot_admin, 'option_tree_sort' ) );
add_action( 'wp_ajax_option_tree_import_data', array( $ot_admin, 'option_tree_import_data' ) );
add_action( 'wp_ajax_option_tree_update_export_data', array( $ot_admin, 'option_tree_update_export_data' ) );
add_action( 'wp_ajax_option_tree_add_slider', array( $ot_admin, 'option_tree_add_slider' ) );
add_action( 'wp_ajax_option_tree_save_layout', array( $ot_admin, 'option_tree_save_layout' ) );
add_action( 'wp_ajax_option_tree_delete_layout', array( $ot_admin, 'option_tree_delete_layout' ) );
add_action( 'wp_ajax_option_tree_activate_layout', array( $ot_admin, 'option_tree_activate_layout' ) );
add_action( 'wp_ajax_option_tree_import_layout', array( $ot_admin, 'option_tree_import_layout' ) );
add_action( 'wp_ajax_option_tree_update_export_layout', array( $ot_admin, 'option_tree_update_export_layout' ) );
Ho provato a leggere il wiki, ma non mi ci ritrovo.. Questo è il mio file index.php
-
-
AutorePost
Visualizzazione 2 filoni di risposte
- Devi essere connesso per rispondere a questo topic.