Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1034021
    mpanesar
    Participant

    Hi X,

    I want to add a page which shows only the top 10 post throughout the site and wanted some advice how I should approach/start?

    I have created a new page but I wanted to know what files I should edit to get the above to work.

    I know that a new function will need to be created but not sure where this should be added and what .php needs to be edited to reference the function.

    Please note I am asking for guidance, I will do the customisation work, many thanks

    #1034285
    Joao
    Moderator

    Hi There,

    Have you considered using the recent posts element in Cornerstone ?

    It allows up to 4 posts but you can use it multiple times and use the offset box to select from which posts it should start counting, this way you would be able to setup in a way that just last 10 posts would be shown.

    Let us know your thoughts.

    Thanks

    Joao

    #1034717
    mpanesar
    Participant

    Hi,

    thanks for the suggestion but not sure it would be customisable enough for what I would to achieve

    #1035253
    Rue Nel
    Moderator

    Hello There,

    With your page built in Cornerstone, you can make use of the Recent Posts element to show 10 recent post items. You can have multiple recent posts elements since by default it will only display up to 4 items. You can make use of the offset option preset in the element.

    On the other hand, you can also install Essential Grid by going to X Addons > Extensions. With this plugin, you can display up to 10 recent post items and select how these items being displayed on the page. The Essential Grid element is also available in Cornerstone when you have installed it. You can check more about this Essential grid plugin here: https://community.theme.co/kb/integrated-plugins-essential-grid/

    If you want to check out how you can display items with Essential grid, here are some examples of the grid:
    http://essential.themepunch.com/#examples

    Hope this helps.

    #1035653
    mpanesar
    Participant
    This reply has been marked as private.
    #1036224
    Nabeel A
    Moderator

    Hi again,

    Thanks for writing in! It could be possible with custom development, but this would be outside the scope of support we can offer. You may wish to consult a developer to assist you with this. X is quite extensible with child themes, so there are plenty of possibilities.

    Thanks for understanding. Take care!

    #1038317
    mpanesar
    Participant

    Hi,

    I understand its possible with custom development, I only require some guidance and will be able to do the customisation myself. My original question was for some indication what files, therefore I could investigate it myself.

    Please note I am not asking XTheme support to do the custom development.

    #1038603
    mpanesar
    Participant

    Hi,

    I am assuming that adding a condition to check page ID on the _index.php and referencing that to views?

    would that seem like the right approach?

    #1038708
    Rad
    Moderator

    Hi there,

    If you’re trying to customize the blog template, then yes, it’s _index.php but the condition should be is_home() since blog page has no ID. But if it’s a page, then it depends on your currently selected template (Eg. under Page Attributes) and that’s where you’ll add the condition by ID. They are wp-page.php, and templates named template-*-*.php

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1034021 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>