WordPress.org

Ready to get started?Download WordPress

Forums

Page2cat: Category, Pages & Posts Shortcodes
Head title [h1,h2,h3] doesn't works... (7 posts)

  1. enigmaenigma
    Member
    Posted 1 year ago #

    Hi!
    Thanks before nothing!
    Everything is correct in the plugin... except the title of the post...
    Stay in the same size of the rest of the text....
    This is it was in every pages... (diferents ID)

    [showlist catid="11" showheader="true" header="1" headerclass="my-header" excerpt="true" image="true" wrapper="true" wrapperclass="custom-wrap"]

    I would like to know if its normal...
    You can see here the diferent between the general page with the regular Headtitle and using the plugin:
    https://dl.dropboxusercontent.com/u/7617229/temporales/problem.jpg

    http://wordpress.org/extend/plugins/page2cat/

  2. swergroup
    Member
    Plugin Author

    Posted 1 year ago #

    Hi enigmaenigma, I can't see the HTML code so I can't be sure 100%, but I think everything is working here and it's a misunderstanding.
    This shortcode - no matter what post or page it's in - will output a

      with some
    • containing posts from your category 11, but it's not intended to replace in any way the post title in the templates.

      I'll try to explain: in the lower half of your screenshot, the post title is shown inside a

    • as expected, because you're using the [showlist] shortcode and this is supposed to output an unordered list, as shown in the shortcode documentation.

      On the other hand the header provided from the shortcode is "MY CUSTOM LIST" and to change that title you have to use the headertext argument, i.e. headertext="my post title".

      To have the shortcode header styled like the upper half of the screenshot, check if your theme's template file have some custom markup or class around its title header and try to clone it around the shortcode (or replace wrapperclass with the real CSS classes).

      Hope it helps!

  3. swergroup
    Member
    Plugin Author

    Posted 1 year ago #

    Of course I broke the comment: it's the last time I try to comment from a tablet :-) Really sorry for that.

    This is the amended comment:

    This shortcode - no matter what post or page it's in - will output an unordered list (<ul>) with some list items (<li>) containing posts from your category 11, but it's not intended to replace in any way the post title in the templates.

    I'll try to explain: in the lower half of your screenshot, the post title is shown inside a list item as expected, because you're using the [showlist] shortcode and this is supposed to output an unordered list, as shown in the shortcode documentation.

    On the other hand the header provided from the shortcode is "MY CUSTOM LIST" and to change that title you have to use the headertext argument, i.e. headertext="my post title".

    To have the shortcode header styled like the upper half of the screenshot, check if your theme's template file have some custom markup or class around its title header and try to clone it around the shortcode (or replace wrapperclass with the real CSS classes).

  4. enigmaenigma
    Member
    Posted 1 year ago #

    also is a misunderstanding hihihi!!
    Thanks so much for your post!! and also for your brilliant plugin!
    I don't want to REPLACE the title, i just want to see in the same size the title in the blog (main page is in H1) and in the page with the plugin stay in the h5 :(

    Maybe i don't understand almost everything...
    [showlist catid="8" listclass="la-revue-de-la-mode" header="1" headerclass="my-header" excerpt="true" image="true" wrapper="true" wrapperclass="custom-wrap"]

  5. enigmaenigma
    Member
    Posted 1 year ago #

    ups sorry! i don't finised:
    https://dl.dropboxusercontent.com/u/7617229/temporales/problem2.jpg

    I just looking for the code to see all of the tittle of one ID in H1 ...
    Thaaaaanks a lot for your time!!!

  6. Paolo T. (pixline)
    Member
    Plugin Author

    Posted 1 year ago #

    Can you please tell me both WordPress and plugin version? I can't reproduce the bug in my test environment (WP 3.5.1 / page2cat 3.3.1).

    Also, posting the rendered HTML output ("view source") on pastebin.com and sharing the pastebin here or by email (plugins AT swergroup DOT com) would help a lot. Thank you for your patience!

  7. Paolo T. (pixline)
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you for the private mail: now it makes more sense.

    You need to have the same header class as your theme's post title ( h1.entry-title ). Try this shortcode (with every other arguments you need, of course):

    [showlist catid="11" showheader="true" header="1" headerclass="entry-title"]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic