Galeria de Fotos Video Advanced newspaper
-
Hola! Me he descargado el tema de wordpress advanced newspaper. Quiero crear la galeria de video e imagenes (en la demo del tutorial http://www.gabfirethemes.com/demos/advanced/ la podeis ver, me parece que estan muy bien).
El tema viene con una guía y esto es lo que dice al respecto:
Photo & Video Galleries
If you are going to use photo or video galleries, follow these instructions. The basics are when you submit a photo or a video, it’s stored using a category. The gallery pages must know about the category they are associated with to present the items to the page, this required you to bind to it. Reminder: It’s important to continue to work locally, do not yet upload the files to the server.1. Create the categories for the media you will use.
Log in to WordPress admin panel and create two categories. One for videos, and the other for photos. The following are example of categories; you can change them to what you prefer:• Video Gallery
• Photo Gallery2. Get the ID of each media category.
Check the ID’s of the categories that you have just created. Take a look at this page (http://gabfirethemes.com/how-to-check-category-ids/) if you dont know how to check a category ID. Write down the ID for each category:
Video Category ID = _______
Photo Category ID = _______3. Modify the file name for each gallery page in the Themes folder.
Find the two files in the folder UPLOAD-TO-THEME-ROOT/Wp-adv-newspaper with the names category-PhotoGallery.php and category-Video.php.
Remove the underlined word (PhotoGallery or Video) and replace it with the category ID’s you found earlier.Example of Renaming the Photo Gallery
If the category id for the Photo Gallery is 30, modify the underlined word so the filename is now named category-30.php. Do the same with the video gallery.Note: If you are not using the Video or Photo Gallery pages on your site, delete one or both of the files called category-Video.php or category-PhotoGallery.php.
He intentado seguir los pasos, pero supongo que alguno habré hecho mal por que el resultado que he obtenido es una categoria más, que muestra la entrada igual que en las otras, y no como en la galería de la demo.
Lo que he hecho es lo siguiente:
1.-Crear categorias: -Imágenes (ID74)
-videos (ID75)
2.-Ir al Editor i abrir el archivo: category_PhotoGallery.php<?php global $theme_options, $newspaper; ?>
<?php get_header(); ?><div id=»innerLeft»>
<div id=»entryMeta»>
<h2 class=»singlePageTitle»><?php echo $newspaper[«catPhoto»]; ?> ‘<?php bloginfo(‘blogname’); ?>’</h2>
</div>
<div id=»innerContent»>
<div class=»post»>
<?php
$myqueryname = $wp_query;
$wp_query = null;
$wp_query = new WP_Query();
$wp_query->query(‘cat=’.$theme_options[«photoGalCatID»].’&showposts=’.$theme_options[«arcPhotoCount»].’&paged=’.$paged);
if (have_posts()) : while (have_posts()) : the_post();
?>
<div class=»photoFrame»>
<div class=»photoFrameInner»>
<h2 class=»titlePhotoCat»>» rel=»bookmark»><?php the_title(); ?></h2>
«><img src=»<?php viva(‘NpAdvCatPG’,’18’); ?> » alt=»<?php the_title(); ?>» />
<div class=»postinfoPhotoCat»><?php the_time(‘F j, Y’); ?> | » rel=»bookmark»><?php echo $newspaper[«permalink»]; ?></div>
</div>
</div>
<?php endwhile; else : endif; ?>
<div class=»clear»></div>
</div><div class=»navigation»>
<div class=»previous»><?php posts_nav_link(»,»,’« ‘.$newspaper[«previous»]) ?></div>
<div class=»next»><?php posts_nav_link(»,».$newspaper[«next»].’ »’,») ?></div>
<div class=»clear»></div>
</div></div><!– Enf of innerContent –>
<div id=»midSidebar»>
<div id=»midSidebarInner»>
<?php include (TEMPLATEPATH . ‘/innerMidSidebar.php’); ?>
</div>
</div><!– End of midSidebar –>
<div class=»clear»></div>
</div><!– End of innerLeft (Content + Middle sidebar) –><div id=»rightSidebar»>
<?php include (TEMPLATEPATH . ‘/innerRightSidebar.php’); ?>
</div><!– End of rightSidebar –>
<div class=»clear»></div><?php get_footer(); ?>
</div><!– enf od wrapper –>
</body>
</html>Que es lo que debo sustituir? yo he cambiado donde pone $wp_query->query(‘cat=’.$theme_options[«photoGalCatID»] por $wp_query->query(‘cat=’.$theme_options[«LA ID DE MI IMÁGEN»]
Creo que voy muy perdido… Alguien me puede echar una mano???
pdta: ES LA PRIMERA VEZ QUE ESCRIBO EN UN FORO
El blog con el que necesito ayuda es (visible solo para usuarios conectados).
-
Se me olvido comentar que evidentemente tambien la ultima cosa que he hecho ha sido crear una entrada i añadirle la imagen, clasificandola en la categoria imagenes.
y x cierto Grácias anticipadas!
-
Hola. Si has podido editar un archivo PHP, eso significa que tienes tu blog WordPress.ORG en tu propio hospedaje y que no estás en el buen lugar. Debes hacer tu consulta en http://wordpress.org/support/
Estás actualmente en el foro de WordPress.COM, y nuestras respuestas no corresponderán a tu situación, ya que WP.com y .org no funciónan de la mísma manera. Gracias y espero que encuentres la respuesta a tu pregunta.
-
-
Pero… mi página acaba en .com
Entonces no tendria que preguntar aquí??Si es que no, os agradeceria que me explicarais por que tengo que escribir en el foro de wordpress.org. Es decir, entiendo lo que has puesto «nuestras respuestas no corresponderán a tu situación, ya que WP.com y .org no funciónan de la mísma manera» pero lo que quiero saber es más bien. En función de qué, sabe uno donde debe escribir.
Por si sirve de alguna ayuda. Lo que hice es contratar el hosting y un dominio .com, instalarme el wordpress y el tema advnewspaper y adelante!
Grácias
-
Es por que me he descargado wordpress de wordpress.org???
La extensión de mi página no tiene nada que ver ¿verdad? -
Esto aparece bajo «Noticias importantes» en la portada de los foros:
https://es.forums.wordpress.com/topic/lee-esto-antes-de-postear?replies=1Leelo atentamente y comprenderás porqué no estás en el buen foro y porqué se ha trasladado el tema a la sección «Fuera de tema». Saludos.
- El debate ‘Galeria de Fotos Video Advanced newspaper’ está cerrado y no admite más respuestas.