Before now, I created a template file in / public just by removing the thumbnail hook. But this new model did not appear in the list.
Thanks.
]]>We have an existing www.ads-software.com site, hosted at laughing squid.
I did not create the site and have previously done all my editing online using the dashboard and admin login.
The board wants a complete overhaul to the site now, so I need a sandbox to test a new theme and create the site.
I have read a lot of instructions and answers and understand some things but I am having trouble connecting it to my issue. I am not creating a new site. I do not want to change hosts. I have never installed it on this new computer. and for after I get the sandbox working (assuming I do.) I do not see how to upload the pages back to the site.
I am uncertain I am even asking the right question since I really am at a loss here but:
I have the install an existing site instructions here but they talk about changing host…how does that apply in my case? I have a host but do not work from their site.
How do I put the files in the website if I do get it installed? There is no upload page section in the WP admin login dashboard.
Would I be better getting something like pressable or just using the www.ads-software.com download and the XAMPP?
What am I not asking that would give me the missing link. I know there is just something I am missing that this should make sense but I am lost.
]]>The correct url path is : https://doubledogproductions.com/gresla-wp/wp-content/themes/gresla/temp-jquerygallery.php and it’s used in page slug “menu-test”
I’ve tried saving it with different names, creating new file and overwriting the one on the server. All of my other templates work perfectly but this new one.
My Template Name code is as follows:
<?php
/**
* Template Name: Template-Jquery Gallery
*
* current ver. 1.0
* author: Dani Dudovick, Double Dog Productions
*
* @package WordPress
* @subpackage gresla
* @since gresla ver. 1.0
*/
?>
Thanks in advance!
DDDoubledog
How I can work with the new theme/ new site and still have the old site up and running until we launch the site?
Thank you!
]]>I’m not sure i can post this here. But since 4.5 months i’m proud to release my new WordPress Magazine Theme! I have put all my spare time in it. After my regular work hours i started to design and build my new news template.
I would like to receive also some feedback to make my template better, please add your comments and suggestions below.
Demo url: https://www.victoria-magazine.com
Hope you like it, and i’m looking forward to your feedback.
]]>https://www.ads-software.com/plugins/foodlist/
]]>I am using the Parker theme for a page, but I had to modify one template. For this I made a copy of the template, but the metabox for the selection of the categories disappeared. I don’t know where this metaboxes are defined for adding them to my modified template, can you help me please?
]]>I don’t know if I could explain my question in the title, but I will describe below what I’m doing:
1. I created a new template (Week.php):
<?php
/**
* Template Name: Dia da Semana
*
* Description: Simples PHP para mostrar um texto por dia da semana.
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
get_header(); ?>
<div id="primary" class="site-content">
<div id="content" role="main">
<?php get_template_part( 'content', 'page' ); ?>
<?
date_default_timezone_set('America/Sao_Paulo');
$fuso = 0;
$fator = "+";
$diasemana[0] = "Conteúdo de Domingo";
$diasemana[1] = "Conteúdo de Segunda";
$diasemana[2] = "Conteúdo de Ter?a";
$diasemana[3] = "Conteúdo de Quarta";
$diasemana[4] = "Conteúdo de Quinta";
$diasemana[5] = "Conteúdo de Sexta";
$diasemana[6] = "Conteúdo de Sábado";
$timeadjust = ($fuso * 60 * 60);
if ($fator == "+"){
$diasem = date("w",time() + $timeadjust);
}
if ($fator == "-"){
$diasem = date("w",time() - $timeadjust);
}
$datar = "$diasemana[$diasem]";
echo $datar;
?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar( 'front' ); ?>
<?php get_footer(); ?>
2. I created a new type post (functions.php):
//Adicionar Cardápio como Tipo de Publica??o
add_action( 'init', 'codex_cardapio_init' );
/**
* Register a cardapio post type.
*
* @link https://codex.www.ads-software.com/Function_Reference/register_post_type
*/
function codex_cardapio_init() {
$labels = array(
'name' => _x( 'Cardápios', 'post type general name', 'your-plugin-textdomain' ),
'singular_name' => _x( 'Cardápio', 'post type singular name', 'your-plugin-textdomain' ),
'menu_name' => _x( 'Cardápios', 'admin menu', 'your-plugin-textdomain' ),
'name_admin_bar' => _x( 'Cardápio', 'add new on admin bar', 'your-plugin-textdomain' ),
'add_new' => _x( 'Adicionar Novo', 'cardapio', 'your-plugin-textdomain' ),
'add_new_item' => __( 'Adicionar Novo Cardápio', 'your-plugin-textdomain' ),
'new_item' => __( 'Novo Cardápio', 'your-plugin-textdomain' ),
'edit_item' => __( 'Editar Cardápio', 'your-plugin-textdomain' ),
'view_item' => __( 'Ver Cardápio', 'your-plugin-textdomain' ),
'all_items' => __( 'Todos os Cardápios', 'your-plugin-textdomain' ),
'search_items' => __( 'Buscar Cardápios', 'your-plugin-textdomain' ),
'parent_item_colon' => __( 'Cardápios Relacionados:', 'your-plugin-textdomain' ),
'not_found' => __( 'Nenhum cardápio encontrado.', 'your-plugin-textdomain' ),
'not_found_in_trash' => __( 'Nenhum cardápio na lixeira.', 'your-plugin-textdomain' )
);
$args = array(
'labels' => $labels,
'public' => true,
'publicly_queryable' => true,
'show_ui' => true,
'show_in_menu' => true,
'query_var' => true,
'rewrite' => array( 'slug' => 'cardapio', 'with_front' => false ),
'capability_type' => 'post',
'has_archive' => 'cardapio',
'hierarchical' => false,
'menu_position' => null,
'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' )
);
register_post_type( 'cardapio', $args );
}
What do I do with these two codes is displaying the contents of a page created using the new type post within the new template.
Sample: When creating a page of type “cardapio” using the title “Sunday”, in the content will put a form containing the options for this day. Thus, within the code I created for my new template, I would like of knowing what I put in place of “Conteúdo de Domingo” to be able to display the contents of the “Sunday”.
Addendum: I’m testing in Twenty Twelve theme with WordPress 3.8.1. But the idea is to use another theme with WP 4.0.
]]>