Forum Replies Created

Viewing 12 posts - 61 through 72 (of 72 total)
  • Author
    Posts
  • thanks Yigit!

    in reply to: Catalogue Shortcode #377871

    bump.
    Thanks

    in reply to: Catalogue Shortcode #377218

    I 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.
    in reply to: Catalogue Shortcode #377217

    Thanks Andy! That works!

    in reply to: Catalogue Shortcode #375553

    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.
    in reply to: Catalogue Shortcode #375496

    #2. I’ve updated to the latest version. the shortcode shows as plain text as attached. http://imgur.com/GwUMNyR

    in reply to: Review System Plugin #375482

    Thanks Yigit!

    in reply to: Catalogue Shortcode #375475

    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

    in reply to: Display taxonomy within table #373781

    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.

    in reply to: Select Taxonomy to display as post meta infos #372713

    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.
    in reply to: Select Taxonomy to display as post meta infos #372707

    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;
    }
    in reply to: Select Taxonomy to display as post meta infos #372692

    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.
Viewing 12 posts - 61 through 72 (of 72 total)