Forum Replies Created
-
AuthorPosts
-
January 14, 2015 at 7:45 am in reply to: NON video version of tutorial guide – adding more icon fonts #379295
thanks Yigit!
bump.
ThanksI just realized when I switched from avia to default, a page thumb shows. When I switched back to avia, the page thumb disappears. The page thumb is not supposed to be there anyway. How can I remove that?
And when I switched to and fro to do editing, it does not saved the latest update.
A quick example:
I remove a letter A from Avia.
Saved the page.
Load the page and it shows the latest update.
When I switch to default, it shows the unedited version with the letter A. Vice versa with both editors.Is this a bug or it meant to be?
- This reply was modified 9 years, 11 months ago by senso.
Thanks Andy! That works!
Thanks Yigit.
On pages using Avia Layout Builder, the content is gone when I switch to default editor. Does that mean, in the future, if I want to switch to a another theme, I have to redo all the posts?
——————–
Digress…….. whenever I submit a post in this forum, it leads to a blank page. I have to refresh the page to load the content again. Is that normal?- This reply was modified 9 years, 11 months ago by senso.
#2. I’ve updated to the latest version. the shortcode shows as plain text as attached. http://imgur.com/GwUMNyR
Thanks Yigit!
Hi Andy,
1. To add catalogue, the item as in “Add/Edit List items. Here you can add, remove and edit the items of your item list.” The first item added has a wider space than the rest of the items.
2. Will do
3. The forum wrapped the code. ‘<‘ becomes ‘& l t ;’ HTML Entity
Found a fix for this after more googling. Not sure if is the correct way but it does seem to solve my problem for now. Hopefully it will be helpful and time saving for theme owner who wants to do something similar.
The problem here is the use of ‘echo‘. Use ‘return‘ is more appropriate and include ob_start() and ob_get_clean() buffering.
The working code is as below
function list_terms_custom_taxonomy( $atts ) { extract( shortcode_atts( array( 'custom_taxonomy' => '', ), $atts ) ); $args = array( 'taxonomy' => $custom_taxonomy, 'title_li' => '', 'show_count'=> 1, ); ob_start(); $string1 = '<ul class="yourcssclass">'; $string1 .= wp_list_categories($args); $string1 .= ob_get_clean(); $string1 .= '</ul>'; return $string1; } add_shortcode( 'wp', 'list_terms_custom_taxonomy' );
Please note that I’m not a php coder so do it at your own risk.
Hi Elliot,
On second thoughts, does editing the functions.php exclude taxonomies for all posts? I would like to specify selective taxonomies for different custom post types, will that be possible?
For e.g.
In Custom Post Type A, I want to show date, time and author.
In Custom Post Type B, I want to show date, time, author, category and slug2taxonomy.p/s: Just realised I didn’t attached the image in my previous post #372692 http://imgur.com/QMXJPd2
- This reply was modified 9 years, 12 months ago by senso.
Hi Elliot,
Thanks for the prompt reply. I edited the previous message before seeing your latest reply. Do ignore that.
I think that is what I needed. May I check to exclude more than one taxonomy, do I do something like the below?
add_filter( 'avf_exclude_taxonomies', 'enfold_customization_exclude_taxonomies' ); function enfold_customization_exclude_taxonomies( $t ) { $t[] = 'slug1, slug2, slug3'; return $t; }
Hi Elliott,
Thanks for the prompt support. Sorry for not making myself clearer.
I’m not trying to display posts from a custom taxonomy.
Currently, the post-meta-infos is showing all the taxonomies registered with that post type. I wanted to show only selected taxonomy.
I think I might have used the wrong term. By post-meta-infos, I was referring to what’s inside the red border of the attached image.
- This reply was modified 9 years, 12 months ago by senso.
-
AuthorPosts