Any update regarding this issue? I have to fix it as well.
Hi Gee95, can you please help me to integrate userpro as well with bbpress? Thanks
Thanks for info. Is it possible to set theme width to 1200px. Is that also something hard or just a modification of few codes.
Thanks Lucian.
Download the latest version. It’s updated.
Sorry for late late reply. Actually i was working really hard to achieve all this. First i encountered a problem in creating a CPT and then several other issues. However, I managed to setup this now. Thanks again. I will be back in a day or two and then i will show you my page. It’s still under construction but now is in working condition. Once again, Thanks alot. It will never be possible with a wonderful support from you. 🙂
Thanks Lucian. But whenever, I add the code of single-template-2.php to single-products.php it gives me a blank page. How are you adding the code. Can you paste the whole code of single-template-6 that you added to single-bk.php.
Thanks
yeah Exactly the same question. Thanks @quangninhvn for screenshot. Thanks
Thanks a lot Lucian. @Carel tagDiv team is really very supportive and i think they will help you to fix any problems. And For tagDiv Team, please please guide us all how to implement a specific Template of Newspaper theme like single_template_1.php to a newly created Post Type Like “Books”.
So that we can make amendments to that template as our wish in the future. Thanks
In Short We want to Copy a template “Single_template_1” for our custom post type “Books”. So, that we can amend that template later and this doesn’t affect the original single_template_1. Because we will rename this template to single_template_books.php
I think you better understand what we want to achieve.
Thanks a lot.
I am in great trouble. Whenever, i enable registration on my site around 300 fake registrations will be done in less than 24 hours. How can i handle this situation.
Thanks a lot Lucian. It’s really helpful for me but i was looking for a way to add Custom Post type Template only.
A Template that is called by a custom post type only not inside posts. I just need to copy single-loop-1.php for my Custom Post type “phones”. I will then add little shortcodes to that template.
Now if i copy the contents of single-loop-1.php to single-phone.php it’s not working. May be i can add in some different way so that it start working.
Thanks a lot.
Wonderful Support.
Wonderful Updates
Wonderful Theme.
Thanks TagDiv Team
Thanks Lucian. I do understand it. Just curious about it. If i have some useful information i would love to share it.
One Last Question. How can i copy a template and rename it for Custom Post Type. Like if i made a CPT Phones and assigned no template to it. It’s fetching the single.php builtin themes template. How can i copy single.php or loop-single.php….So that we can place that exact template in the child theme and made little modifications. and rename that to single-phones.php
Is it possible? And further, i know its out of topic. Just a general question.
Thanks a lot for your wonderful and timely support.
Regards
-
This reply was modified 11 years by
tenocation.
Thanks Lucian. Can we give a little overview of using CPTs in this theme. How to make custom Post Template specifically to this theme. May be a short overview in this thread. Useful for many of us and upcoming customers too.
Thanks
Hello Emil G, CPTs are very necessary for running a multi topics blog. Why not publish a guide on it?
Many users like to know how to use CPTs in theme and it’s a core wordpress functionality too.
Thanks
For CSS part. that’s ofcourse not an issue. I will do that. One of my friends knows CSS quite well.
Thanks
Thanks for coming back. I am sorry for a late reply. I was trying to implement the code in the new post type “Phones” which i created using a pluging “CPT UI”. But each time i enabled the custom post type “single-phones.php” It gives me a blank page.
Here is the template i am using for custom post type “phones”.
<?php
/* ----------------------------------------------------------------------------
the page template
*/
get_header();
switch ($loop_sidebar_position) {
case 'sidebar_left':
echo td_page_generator::wrap_start();
?>
<div class="span4 column_container" role="complementary" itemscope="itemscope" itemtype="<?php echo td_global::$http_or_https?>://schema.org/WPSideBar">
<?php get_sidebar(); ?>
</div>
<div class="span8 column_container td-no-pagination" role="main" itemscope="itemscope" itemprop="mainContentOfPage" itemtype="<?php echo td_global::$http_or_https?>://schema.org/CreativeWork">
<?php
// Update this list using the same format for all the field names you want
$field_names = ['2g_network', '3g_network'];
// Set up tabs
$to_echo = '[vc_row][vc_column width="1/1"][vc_tabs]';
// Set up features tab
$to_echo .= '[vc_tab title="Features" tab_id="features"]';
// Begin a list
$to_echo .= '<ul class="features_list">';
// Loop through the fields
foreach ($field_names as $field_name) {
$data = get_field_object($field_name);
// Check if we have a value and set to a default if not
if ($data['value']) {
$value = $data['value'];
} else {
$value = 'No information on record.';
}
$to_echo .= '<li>' . '<span class="features_label">' . $data["label"] . ': </span>';
$to_echo .= '<span class="features_value">' . $value . '</span></li>';
}
// Close the list
$to_echo .= '</ul>';
// Close the tab
$to_echo .= '[/vc_tab]';
// Close the tab group etc.
$to_echo .= '[/vc_tabs][/vc_column][/vc_row]';
// We have to filter the whole string to make WP interpret the shortcodes
$to_echo = wpb_js_remove_wpautop($to_echo);
// Output
echo $to_echo;
?>
</div>
<?php
echo td_page_generator::wrap_end();
break;
case 'no_sidebar':
echo td_page_generator::wrap_start();
?>
<div class="span12 column_container td-no-pagination" role="main" itemscope="itemscope" itemprop="mainContentOfPage" itemtype="<?php echo td_global::$http_or_https?>://schema.org/CreativeWork">
<?php
// Update this list using the same format for all the field names you want
$field_names = ['2g_network', '3g_network'];
// Set up tabs
$to_echo = '[vc_row][vc_column width="1/1"][vc_tabs]';
// Set up features tab
$to_echo .= '[vc_tab title="Features" tab_id="features"]';
// Begin a list
$to_echo .= '<ul class="features_list">';
// Loop through the fields
foreach ($field_names as $field_name) {
$data = get_field_object($field_name);
// Check if we have a value and set to a default if not
if ($data['value']) {
$value = $data['value'];
} else {
$value = 'No information on record.';
}
$to_echo .= '<li>' . '<span class="features_label">' . $data["label"] . ': </span>';
$to_echo .= '<span class="features_value">' . $value . '</span></li>';
}
// Close the list
$to_echo .= '</ul>';
// Close the tab
$to_echo .= '[/vc_tab]';
// Close the tab group etc.
$to_echo .= '[/vc_tabs][/vc_column][/vc_row]';
// We have to filter the whole string to make WP interpret the shortcodes
$to_echo = wpb_js_remove_wpautop($to_echo);
// Output
echo $to_echo;
?>
</div>
<?php
echo td_page_generator::wrap_end();
break;
default:
echo td_page_generator::wrap_start();
?>
<div class="span8 column_container td-no-pagination" role="main" itemscope="itemscope" itemprop="mainContentOfPage" itemtype="<?php echo td_global::$http_or_https?>://schema.org/CreativeWork">
<?php
// Update this list using the same format for all the field names you want
$field_names = ['2g_network', '3g_network'];
// Set up tabs
$to_echo = '[vc_row][vc_column width="1/1"][vc_tabs]';
// Set up features tab
$to_echo .= '[vc_tab title="Features" tab_id="features"]';
// Begin a list
$to_echo .= '<ul class="features_list">';
// Loop through the fields
foreach ($field_names as $field_name) {
$data = get_field_object($field_name);
// Check if we have a value and set to a default if not
if ($data['value']) {
$value = $data['value'];
} else {
$value = 'No information on record.';
}
$to_echo .= '<li>' . '<span class="features_label">' . $data["label"] . ': </span>';
$to_echo .= '<span class="features_value">' . $value . '</span></li>';
}
// Close the list
$to_echo .= '</ul>';
// Close the tab
$to_echo .= '[/vc_tab]';
// Close the tab group etc.
$to_echo .= '[/vc_tabs][/vc_column][/vc_row]';
// We have to filter the whole string to make WP interpret the shortcodes
$to_echo = wpb_js_remove_wpautop($to_echo);
// Output
echo $to_echo;
?>
</div>
<div class="span4 column_container" role="complementary" itemscope="itemscope" itemtype="<?php echo td_global::$http_or_https?>://schema.org/WPSideBar">
<?php get_sidebar(); ?>
</div>
<?php
echo td_page_generator::wrap_end();
break;
}
get_footer();
?>
I think i am making some nonsense mistake in the above template. That’s why i am getting a blank page. Tried a lot. Thanks 🙂
Thanks Emil for letting me know. Can you please guide me how can i add a Print Button. I need the code and files to edit. Further, Can i do this in child theme.
Thanks
Thanks for responding. I was thinking of weekends that’s why i messaged you today. 🙂
Hello Friend, I am still waiting for your reply. Thanks
Thanks a lot for providing me support that is actually not supported on this forum. 🙂
Actually What i want to achieve this i can explain you in detail.
I want to display a number of fields “labels” along with their data in a column format. Like this image.
But i want to display these all fields,labels, groups( almost 44 fields) under one tab that may be named as Features.
In the second tab i want to display Content that can be named as “Review”. In the Third tab i want to display a gallery. And in the Fourth tab there is a purchase guide named as “buy now”.
Previously i tried a lot to get these working. But failed. And one more thing, i want to create a custom post type “Phones” with a taxonomy “Brands” for it. So, that each time, i don’t have to choose a template for executing these functions. Further whenever there is no content in a field it will not display, If there is no content in a field label, the field label will not show.
Can you please also tell me if i can create a comparison page using these fields. Like if i want to compare iPhone 5 features with iPhone 6. Is it possible with ACF?
Thanks again the most awesome and brilliant guy on TagDiv.
-
This reply was modified 11 years by
tenocation.
No words to say you thankyou. Previously to achieve this i had to buy plugins but all in vain. Now it started working out of the box. Thanks.
It worked after closing it in PHP tags.
Now it’s only displaying the fields meta. Can it display the field name as well? You can check this image for better understanding.
Hello dear, Sorry for late reply, I was not available online for 2 days. Yes, I am using a cache plugin but i cleared my cache twice. Also notice the code shown in the tabs is the same i put in the loop-single.php. It means i saved the file.
The code is just coming out with out any results.
I hope there is some little mistake i am doing. Kindly check it again.
Thanks
Thanks a lot for your continuous support. I tried it. But the results are same again. Although i know we are too close to achieve this. Can you please check the code again. I think there is something missing.
Thank Lucian. I will try and update here if it’s possible.
Hi christopher. Thanks for the wonderful information and support. I today purchased SSL certificate from comodo and passed the keys to my host synthesis. I also confirmed them about mod_spdy and they will activate the module as well.
I am little bit confused about the http to https redirection after reading the above post link you provided. Please guide me which is the best practice to handle https redirection.
Further, how can i handle it.
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js'></script>
to
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
or
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
Please guide me if i need to take any necessary steps. Thanks a lot.