Links

  • Unknown's avatar

    Hy,

    It is my first question I make so I hope to put it in a easy way to get help from those who can help me.

    I have some problems trying to display some links. When I click on the links I posted on a page will not redirect me to right content but to log in window….

    What I am trying to do is to create a blog with lyrics and I will really want to display them alphabetically in a index of links.
    In this way it is very easy for people to acces them from mobiles.

    Any suggestions…
    Thanx

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi,

    Option 1:
    A custom menu, such as the one that is presently displaying on your site, might be the way I would choose first. Is there something about this option that you find unsatisfactory?

    Option 2 (posts):
    Assign each post containing a lyric to a letter category, representing the first significant letter in the title. Then, use a series of customized display posts shortcodes, one for each letter of the alphabet. Example:
    [display-posts category="A" posts_per_page="-1" order="ASC" orderby="title" wrapper="ol"]
    This code will display all posts (“-1”) in the “A” category, in alphabetical order by title, in an ordered list.

    Option 3 (pages):
    Alternatively, you might choose to use static pages instead of posts for the lyrics. You could create parent pages A, B, C, etc, and then use [child-pages] shortcode, a variant of list pages shortcode, to display lists of the child pages for each corresponding letter.

  • Unknown's avatar

    Hi,

    I am pretty new on wordpress.com and not able yet to understand what is the best way for me.

    Little more about what i am planning to do :)

    my project is to publish about 1900 lyrics in a a way that will be easy for mobiles to navigate.
    For example from lyrics which starts with A to lyrics wich start with Z.

    I would like the front page of the site to somehow display the alphabet letters and then when the users acces one of the letters to be redirect to a page (post) which contain a list of all lyrics which began with that letter.
    exemple: http://dictionarbiblic.blogspot.ro/

    Thank you for your answer and hope someone will be nice to help me choose the easiest and best way to do this.

  • Unknown's avatar

    http://dictionarbiblic.blogspot.ro/ is using static pages as the top-level menu items. Within the static pages are lists of posts in alphabetic order. The menu is just a custom menu with twenty or so main categories, and no subcategories. There are no child pages.

    Menu item “A” links to a page with an html extension titled “A,” which has the URL http://dictionarbiblic.blogspot.ro/p/a1.html. I don’t think you can have an html extension on a WordPress.com page, but you can do the same thing with regular static pages.

    Example 1:
    The list of posts in alphabetic order in the “A” page could be created with display posts shortcode as described in option 2, above.

    Example 1, applied:

    • Create static page “A,” https://cartedecantari.wordpress.com/a/.
    • Assign category “A” to posts beginning with the letter “A.”
    • Insert into the page “A” content a display posts shortcode such as
      [display-posts category="A" posts_per_page="-1" order="ASC" orderby="title" wrapper="ol"]
      The ordered list argument can be omitted, or replaced by an unordered list argument, as you like.
    • Create static page “B,” https://cartedecantari.wordpress.com/a/.
    • Assign category “B” to posts beginning with the letter “B.”
    • Insert into the page “B” content a display posts shortcode such as
      [display-posts category="B" posts_per_page="-1" order="ASC" orderby="title" wrapper="ol"]

    etc.

  • Unknown's avatar

    Correction:
    Create static page “B,” https://cartedecantari.wordpress.com/b/.

  • Unknown's avatar

    The categories should probably be lower case: category=”a,” category=”b,” in the shortcode, but I don’t know if it will make any difference. The corresponding category page will be titled “A,” in upper case, because it is the first and only letter of the title of the page.

  • Unknown's avatar

    It is working great. It is what I was looking for.

    I am wondering if is possible to remove the number from each lyric title displayed on each page…

    Thank you so much for your help :)

  • Unknown's avatar

    You’re welcome.

    I am wondering if is possible to remove the number from each lyric title displayed on each page…

    Yes. I included the argument that produces enumeration because the system that you were previously using was numerically ordered. The wrapper argument, wrapper=”ol,” is what creates the ordered list. You can remove that argument entirely, or replace it with the argument wrapper=”ul,” which will produce a bulleted (or “unordered”) list.

  • Unknown's avatar

    Thanks for the code.
    Maybe I will lett it whit numbers but it s nice that I have the code in case I will change it layter.

    Thanks a lot for your help.

  • Unknown's avatar

    Hi
    I would like to know how can I display the lyrics titles by numbers myself wrote it before each liryc name and not alphabetically.

    I would like to do this because of romanians diacritics, otherwise it is not displaying right the list of the lyrics.

    Thank you

  • Unknown's avatar

    You can take a look at page A and see what I mean :)

  • Unknown's avatar

    I would like to know how can I display the lyrics titles by numbers myself wrote it before each [lyric] name and not alphabetically.

    I would like to do this because of romanians diacritics, otherwise it is not displaying right the list of the lyrics.

    Yes, I understand. The easiest way to do this, though it may be aesthetically less than ideal, would be to use zeros in front of the integers, as follows:

    001.
    002.

    099.
    100.
    101.
    etc.

    However, if alphabetic order in Romanian is displaying incorrectly on this theme, or in general on WordPress.com themes, you may want to notify staff of this. Perhaps the deficiency can be corrected. To call for staff attention, you may add a “modlook” tag to the sidebar of this topic.

  • Unknown's avatar

    If the number of songs beginning with a letter is less than 100, you can use one preceding zero, as follows:

    01.
    02.

    98.
    99.

  • Unknown's avatar

    Hi

    I think I will try the way you suggested with 0 before numbers..
    For me it is important to continue my work.

    Again thank you so much .

  • Unknown's avatar

    You’re very welcome.

    You might wish to consider the following procedure that involves both using display posts shortcode and then discarding it, so that you can edit the content of the list.

    1. In an working page, create and display the list for letter A titles, using display posts shortcode, and numeration beginning with 001.

    2. Copy the list from the displayed post, paste it into the content of the “A” page to be published, and update the page.

    3. The editor of the “A” page will now contain the list:
    001. A bătut la uşa ta cineva
    002. Aceasta e ziua Domnului
    003. Aceasta mi-e dorinţa
    etc.

    but instead of shortcode, the HTML (text) editor will contain the following:

    etc.

    4. Delete the unnecessary zeros from the list in either the visual or HTML editor, and update the page.

  • Unknown's avatar

    Correction:

    I used the quote tab instead of the code tab. The HTML code for the first three items in the “A” list should have been

    <ul>
    	<li class="listing-item"><a class="title" href="https://cartedecantari.wordpress.com/2015/09/13/1-a-batut-la-usa-ta-cineva/">001. A bătut la uşa ta cineva</a></li>
    	<li class="listing-item"><a class="title" href="https://cartedecantari.wordpress.com/2015/09/13/2-aceasta-e-ziua-domnului/">002. Aceasta e ziua Domnului</a></li>
    	<li class="listing-item"><a class="title" href="https://cartedecantari.wordpress.com/2015/09/13/3-aceasta-mi-e-dorinta/">003. Aceasta mi-e dorinţa</a></li>
    </ul>
    etc.
  • Unknown's avatar

    The problem with the procedure I’ve just outlined is that it replaces dynamic shortcode with static code. Future additions to a list and modifications of list order will require that either the changes be done manually, or the four steps be run through again.

    This procedure might be particularly appropriate and useful if the lists for each letter are to be relatively stable. If, on the other, there will be frequent additions, substractions, or modifications of the order, then it may not be as suitable.

  • Unknown's avatar

    I will keep in mind this way to fix this “problem”.

    It will take some time for me to post about 2000 lyrics on the site… I do not have much time avaible to this work but is my project I want to finish.
    That s why I am focusing first to do this jobb done and then I can consider if is a really a problem the way they are displayed.

    Thank you for your great help.

    Stefan.

  • The topic ‘Links’ is closed to new replies.