Okay
  Public Ticket #234788
Recent Posts on Home - missing "more"
Closed

Comments

  • Sevim started the conversation

    Hi there,

    I can't see the More-Link, instead I see "...".

    Could you help - 

    This is the "code" from my home-page:

    [heading subtitle="Verbund sozial-kultureller Migrantenvereine DO e.V."] [/heading]

    [divider line_type="Full Width Line" custom_height=""]

    [recent_posts title_labels="true" category="aktuell"]

    [divider line_type="No Line" custom_height=""]
    [recent_projects project_style="3" category="aktuelle-projekte" heading="Aktuelle VMDO-Projekte/-Ereignisse" page_link_text="Alle VMDO-Projekte" page_link_url="http://vmdo.de/vmdo/projekte-vmdo/" number_to_display=""]

    And: why is a post which is a Link not listed on the homepage (category="aktuell") - see screenshot.

    Any help is appreciated. Thanks in advance.

    Greets, Sevim

  •  8,839
    Tahir replied

    Hey Sevim!

    Please try using the Visual Composer and add in the elements in there so that no shortcode attributes are missed. 

    Cheers


    ThemeNectar Support Team 

  • Sevim replied

    Hi Tahir,

    I've tried it, but there is no improvement -pls see attached file and this is teh code from the visual composer:

    [vc_row][vc_column width="1/1"][heading]Verbund sozial-kultureller Migrantenvereine DO e.V.[/heading][recent_posts category="aktuell"][/vc_column][/vc_row][vc_row][vc_column width="1/1"][recent_projects category="aktuelle-projekte" project_style="3" lightbox_only="true" heading="Aktuelle VMDO-Projekte/-Ereignisse" page_link_text="Alle" page_link_url="http://vmdo.de/vmdo/projekte-vmdo/" number_to_display="5"][/vc_column][/vc_row]

    Still there is't "Read More" and also the links to the details pages are only links to the images of the portfolio.

    Unfortunatelly, I had go back to the shortcode version.

    Any help is appreciated and 1 more question: is it a problem not to work work with the visual composer but with the short codes.

    Cheers



  •  8,839
    Tahir replied

    Hey Sevim!

    Could you please provide wp-admin login details so we can take a look and sort this for you. 

    Thanks


    ThemeNectar Support Team 

  •   Sevim replied privately
  •  1,070
    ThemeNectar replied

    Hey Sevim, by default the recent posts element doesn't have an automatic read more button - if you would like me to add one it will require a mod to the shortcode-processing.php file located in the nectar/tinymce directory. If I proceede with this you'll have to keep track of that mod in order have it persist through theme updates going forward - would you like to me apply the mod?

  • Sevim replied

    OK, I understand. If it should behave as it is then it's ok. I thought, it was my fault.

    Another issue with it, is it possible with the theme to show 

    - more then 4 recent posts from a certain category

    - or at least to have the arrows as it is on the portfolio item on the home page.

    And

    - why isn't a recent post, which is a link post, shown on the home page.

    Sorry, I have so many questions - thank you very much.

    Sevim

  •  1,070
    ThemeNectar replied

    Hey again!

    1. You'd need to modify the shortcode-processing.php file for this (which is located in the nectar/tinymce directory). Once in the file search for "recent posts" to end up at the right place and you can change the 'showposts' => 4, to be a new number

    2. If you want to show the link post types, change this:

     
     $recentBlogPosts = array(
    		      'showposts' => 4,
    		      'category_name' => $category,
    		      'ignore_sticky_posts' => 1,
    		      'tax_query' => array(
    	              array( 'taxonomy' => 'post_format',
    	                  'field' => 'slug',
    	                  'terms' => array('post-format-link','post-format-quote'),
    	                  'operator' => 'NOT IN'
    	                  )
    	              )
    		    );
    
    to this:
     
     $recentBlogPosts = array(
    		      'showposts' => 4,
    		      'category_name' => $category,
    		      'ignore_sticky_posts' => 1
    		    );
    

    Cheers