Forum Replies Created
-
AuthorPosts
-
palmtreeParticipant
Thank you. Upon the release, it would be appreciated if you could tell me which files need to be updated. I use child theme to customize the theme so if entire parent theme (all the files) needs total replacement, I have to re-do all my work from scratch… I want to avoid that.
palmtreeParticipantThank you. Upon the release, it would be appreciated if you could tell me which files need to be updated. I use child theme to customize the theme so if entire parent theme (all the files) needs total replacement, I have to re-do all my work from scratch… I want to avoid that.
palmtreeParticipantI just would like to give you an update.
I could change all the labels (mentioned above) in the admin menu by using add_action function register_post_type & taxonomy.However inside “Testimonial” admin editing page, I cannot change columns title names inside table TH tags such as Title, Testimonial name, image, details or order…
I tried to write following in functions.php but only label name could change to Voice.add_action('init', 'makeCustomPostType'); function makeCustomPostType(){ register_post_type('testimonials', array( 'label' => 'Voice', 'public' => true, 'columns' => array( 'title' => 'Name', 'testimonial' => 'Details', 'testimonial-customer-image' => 'Picture', 'testimonial-customer-name' => 'Place', 'testimonial-customer-details' => 'Date', 'testimonial-order' => 'Order', ) )); }
Obviously columns array does not do anything here…
It would be amazing if you could give me some magic code.palmtreeParticipantSorry I’ve realized, it works fine! I will close this ticket.
palmtreeParticipantGot sorted out myself.
$terms = get_categories( array( 'orderby' => 'name', 'parent' => 0, ) ); echo '
- ';
foreach ($terms as $term) {
$categories = get_categories('child_of='.intval($term->term_id));
echo '
- term_id). '">'.$term->name.'';
echo '
- ';
foreach ($categories as $category) {
if ($category->parent==$term->term_id):
echo '
- '.$category->cat_name.' '; endif; } echo '
';
}
echo '
🙂
palmtreeParticipantHello,
Currently the code below creates Parent and children underneath structure but child category URL isn’t output properly. Could you give me your advise?
<?php $terms = get_categories( array( 'orderby' => 'name', 'parent' => 0 ) ); echo '
- ';
foreach ($terms as $term) {
$categories = get_categories('child_of='.intval($term->term_id));
echo '
- term_id).' ">'.$term->name.'';
echo '
- ';
foreach ($categories as $category) {
if ($category->parent ==$term->term_id):
echo '
- term_id).'">'.$category->cat_name.' '; endif; } echo '
';
}
echo '
palmtreeParticipantGot solved this!
https://wordpress.org/support/topic/to-output-parent-category-name-with-link/#post-9445363
Thank you. I will close this ticket:)
palmtreeParticipantThe code is slightly modified and now I can see “lollipop” (parent cat name and url pointing that parent cat). But for other post which doesn’t have parent category lost category output.
For example when the post “I like sweet things” belongs to “gummy” that has no parent, there will be no cat name output (neither gummy nor its url pointing to gummy). As a result inside <span class=”category”> becomes empty.
I think this code above only works for the post that belongs to category which has parent.
[Summary]
*With the very first code http://pasted.co/b5f13504 works fine only for the post belongs to category which doesn’t have parent.*With the second code http://pasted.co/a2169175 works fine only for the post belongs to the category which has parent.
I need to somehow combine those two…
palmtreeParticipantAfter updating the version to 4.8.1, the problem has gone. Very strange…
Anyway, thanks for your kind support!!August 8, 2017 at 12:35 pm in reply to: Livemesh Posts Carousel in Sidebar output post date (time stamp) #27249palmtreeParticipantThank you for your support! It worked! Fantastic:DDD
August 7, 2017 at 3:56 pm in reply to: Livemesh Posts Carousel in Sidebar output post date (time stamp) #27231palmtreeParticipantHi Meteorite,
Thank you for your response!
I am very happy that this can be resolved. Now could you kindly tell me which language folder it should be referred to?
Is it theme language folder or plugin (if plugin, please tell me exact location). For both theme and plugin, I couldn’t find the same name livemesh-so-widget po etc. I thought I should overwrite existing…Cheers:D
palmtreeParticipantcheers! Thank you for this:D
palmtreeParticipantThanks for checking this. I will add post I want to display one by one then.
palmtreeParticipantHey, I thought I would wait till the site goes online. However when I tried to switch the theme back on the original Invent theme, it does exactly the same. I mean although there are 6 pages as child pages under 1 parents. The above code snippets only output 4 regardless. Could you test that out on your side as well? I want to output all the pages that are of the children of particular page.
palmtreeParticipantGot it:) After reading the documentation, I understood. Thank you.
- term_id). '">'.$term->name.'';
echo '
-
AuthorPosts