Do you have a tutorial or how-to for creating a new post template? I would like to build a new post template based off of the Style 1 post template, but then add in some custom fields that are attached to the post.
Thanks in advance.
I will also like to know how to create a custom template for posts.
/edit
Just found this, seems what i was looking for, maybe it’s helpful also for you.
https://tagdiv.com/customize-articles-with-single-post-templates/
-
This reply was modified 7 years by
TheDavLab.
Yeah, that article is only for using their Cloud Library Page Builder which doesn’t allow for custom fields. I am looking to be able to create a new post template which would be displayed in the meta box on the edit/create post screen which users can choose from.
Hi greenmagazine,
Unfortunately, the theme does not have any such an option for custom fields, sorry! If you want to display more levels, in this case, you need to do it yourself through the theme core files and also, if you are not aware of the steps which are needed to take in this case, please consider hiring a freelancer/developer to help you because we cannot provide custom work at the moment, sorry!
Thank you!
Catalin,
You have a tutorial / help link for create a custom block, I am looking for something similar for a custom post template.
Hi,
Unfortunately, we do not have any tutorial for creating something like this, sorry! Notice that’s not a simple task which includes some custom fields and also, our support does not cover by custom work, sorry! You can try to create your custom post template via TD Composer with Cloud template and if your Custom Fields are generated by a shortcode you can use the Text with Title and add the shortcodes inside that element and place everywhere you want in the site. Also, if you have a PHP code for your custom fields you need to try some plugins that inject your PHP code in the core files, like this -> https://wordpress.org/plugins/php-code-widget/ This is just a simple suggestion. If you are not aware of the steps which are needed to take in this case, please consider hiring a freelancer/developer to help you because we cannot provide custom work at the moment, sorry!
Thank you!
For anyone stumbling onto this post and actually looking for an answer, take a look at this quick plugin I created for this.
https://s3.amazonaws.com/pramadillo/newspaper-post-templates.zip
I was simply asking support if they could point me to any documentation on this, which IS a super easy task. It is basically
class newspaper_post_templates {
var $plugin_url = '';
var $plugin_path = '';
function __construct() {
$this->plugin_url = plugins_url('', __FILE__); // path used for elements like images, css, etc which are available on end user
$this->plugin_path = dirname(__FILE__); // used for internal (server side) files
add_action('td_global_after', array($this, 'hook_td_global_after')); // hook used to add or modify items via Api
}
function hook_td_global_after() {
td_api_single_template::add('biz_people',
array(
'file' => $this->plugin_path . '/biz_people.php',
'text' => 'BizPeople Template',
'img' => $this->plugin_url . '/biz_people.png',
'show_featured_image_on_all_pages' => false,
'bg_use_featured_image_as_background' => false,
'bg_disable_background' => true,
'bg_box_layout_config' => false
)
);
}
}
new newspaper_post_templates();