Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • @jakefromd4 Same problem here. Can you please share the older version of the plugin.

    Hi fabriciofernandesst5,

    This is rather easy to do.

    Do you already have other categories? If not, create a new category.

    Go to Setting – Writing and change the Default Post Category (currently Uncategorized) into something else.

    Go back to your categories. You can now delete the Uncategorized category.

    Hope that helped.

    Yves

    Hello MarineKingAizen,

    I don’t know about your theme, but I have changed some php code in my theme file. Search for something that looks like :

    <?php truncate_post(30,false) ?>

    At least, this is how it looks like in my theme.

    Previously the number was 210 (characters). I have changed this to 30. WP 4.3 seems to have changed this into words.

    Hope this helps.

    All the best,

    Yves

    Same problem here.

    WP 4.3 seemed to have changed trunctation from characters to words.

    I have changed my php from 210 (previously characters) to 30 (currently words).

    Thread Starter ysan

    (@ysan)

    Hello Patrick,

    It has been a while, so I do not remember the specific things I have tested. As I did not found a good solution back then, this functionality is not yet implemented in my website (however, I would really like to do it as soon as possible).

    I hope that you can find a solution and add some logical expressions. Changing the template is something I won’t do as I might need over 300 pages with different [ic_add_posts] shortcodes.

    There are actually 2 plugins with about the same functionality. Yours and List Category Posts. I prefer to use your plugin as your template system is more easy (and useful for me) (however, I would also like to suggest something about this – if you are open for suggestions on this part of the plugin).

    So in brief, I hope you can update the plugin.

    All the best,

    Yves

    Hi Paul,

    The AND function seems to work with tags but not with categories.

    Hope the plugin authors can manage a solution. Have you found something useful?

    KR

    Thread Starter ysan

    (@ysan)

    But this doesn’t seem to work for categories 🙁

    [ic_add_posts category=’cat1′ category=’cat2′]

    Does not result in all posts that belong to both Cat1 AND Cat2.

    Dear plugin authors, do you have a solution for this?

    Kind regards,

    yves

    Thread Starter ysan

    (@ysan)

    Answering my own question…

    Just do it like this :

    [ic_add_posts tag='tag1' tag='tag2']

    Thread Starter ysan

    (@ysan)

    Hi Maximilian,

    You have done some great changes to this plugin. However, I am still experiencing problems with this plugin using IE. I get the error message : “Error: Please add your rating.”

    No problems with Chrome.

    KR,

    Yves

    Thread Starter ysan

    (@ysan)

    Great you would like to implement this.

    I’ll just wait until you made the changes 😉

    Keep up the good work!

    Y

    Thread Starter ysan

    (@ysan)

    Hello siobhyb,

    This code does integrate a list of child categories

    In this case [region]
    Change 35 into the parent category
    Change

    $sep = ', ';

    into something else in order to have a different separator. For instance

    $sep = ' / ';

    Good luck with your project!

    /**
     * Shortcode function to show child categories
     * [region]
     */
    
    function region($atts) {
    	$sep = '';
    	$output = '';
    	foreach((get_the_category()) as $childcat) {
    		if (cat_is_ancestor_of(35, $childcat)) {
    
    $output .= $sep . $childcat->cat_name;
    $sep = ', ';
    			}
    		}
    	return $output;
    }
    add_shortcode('region', 'region');

    All thanks for this code goes to alchymyth who was so kind to help me with this code.

    Thread Starter ysan

    (@ysan)

    Hi Ben,

    Yes… finding time 😉

    Anyhow, perhaps another request… Is it difficult to make your plugin multisite ready?

    KR

    I’m using the above code. Made some changes in order to have a separator.

    Would like to insert the child categories into the text of a post by using a shortcode [region]; such as

    This activity is possible in [region].

    This is the function I tried to make. It works but it shows the childcategories above the post and not inside the text of the post.

    function region($atts) {
    $sep = '';
    foreach((get_the_category()) as $childcat) {
    if (cat_is_ancestor_of(27, $childcat)) {
    echo $sep.'',$childcat->cat_name,'';
    $sep = ' / ';
    }}}
    
    add_shortcode('region', 'region');

    Hope to find some help here

    Thread Starter ysan

    (@ysan)

    I think i have found the php code for showing the childcategories inside a post. This code works inside the loop.

    <?php
    $sep = '';
    foreach((get_the_category()) as $childcat) {
    if (cat_is_ancestor_of(27, $childcat)) {
    echo $sep.'',$childcat->cat_name,'';
    $sep = ' / ';
    }}
    ?>

    How to turn it into a shortcode [region] that can be used inside a post?

    function region($atts) {
    $sep = '';
    foreach((get_the_category()) as $childcat) {
    if (cat_is_ancestor_of(27, $childcat)) {
    echo $sep.'',$childcat->cat_name,'';
    $sep = ' / ';
    }}}
    
    add_shortcode('region', 'region');

    seems to work… but it places the childcategories above the post and not inside the text.

    Almost there… just need that little bit of help 😉

    Thread Starter ysan

    (@ysan)

    Hi Ipstenu,

    Thank you for your input. Have been looking for this since a long time.

    Do you think it can be done by Domain Mapping? I have been trying the plugin but I don’t understand it to much.

    Y

Viewing 15 replies - 1 through 15 (of 16 total)