WordPress.org

Ready to get started?Download WordPress

Forums

Playin' With AsideShop (15 posts)

  1. danapalooza
    Member
    Posted 6 years ago #

    Hey there maijs. Gave you and your plug-in a shout out in my footer. I'm still playin'.

  2. maijs
    Member
    Posted 6 years ago #

    Thanks, Dan! I appreciate it! Glad it works for you!

  3. danapalooza
    Member
    Posted 6 years ago #

    I've got a couple (a few?) questions:

    1. Where do the tags that you use in SideShop come from (I think I remember seeing them somewhere before)?

    2. Are there any more possible tags (i.e. for "tags" or "categories:, etc.)

    3. Is it possible to create new tags myself – starting at line 46 in the asideshop.php file – and is that the only place within the file that I need to modify in creating a new tag?

    Thanks!

  4. maijs
    Member
    Posted 6 years ago #

    danapalooza,

    Thanks for the questions.

    1. All tags are defined in asideshop.php around line #46. There are two ways to parse the tags:

    a. Parse all at once. This method is safier but processing takes more time.
    b. Parse only those tags that are used in templates. This method uses eval() and therefore is not as safe as first method but processing is much faster.

    The second method is the one that is used by default. The first one - I think I just left it there after performing tests and didn't bother to remove it, though I think I will since it cannot be switched by the user. Makes lots of confution for those who wish to hack the code and add needed tags.

    2. Email me with your request for tags - miro [at] apollo [dott] lv. One thing, though - currently I'm not planing to add tags which take arguments, like %post_date format="d-m-Y"%. I might in the future.

    3. Sure, hack the code as much as you want! Yeah, tags array is around line 46. That's the one you need.

    Take care!

  5. danapalooza
    Member
    Posted 6 years ago #

    One thing, though - currently I'm not planing to add tags which take arguments, like %post_date format="d-m-Y"%.

    Does that mean that I cannot add the date at all or just that I cannot change the formatting for the date from the default?

  6. maijs
    Member
    Posted 6 years ago #

    danapalooza,

    It means that you cannot change the date format within AsideShop date tag. %post_date% tag uses the format specified in WordPress as a default date format.

  7. danapalooza
    Member
    Posted 6 years ago #

    Is there a way to get the date to show on every post instead of just the first post of a specific day?

  8. maijs
    Member
    Posted 6 years ago #

    danapalooza,

    Erm, I think I didn't get your question. What you ask for is the default behaviour. If you add %post_date% tag in your AsideShop template, it will appear for every aside post.

  9. danapalooza
    Member
    Posted 6 years ago #

    Sounds like you got it, actually. I thought it was some sort of a date bug in WordPress but it appears that, for me, using the %post_date% template tag is placing the date only on the first post of a given day and not on the others. It only affects AsideShop posts. Check it out.

    It's like I've accidentally stumbled on a way to solve @presta's problem =-)

    The template I am using seems to place the date on every post so I have ruled that out.

    Any ideas?

  10. danapalooza
    Member
    Posted 6 years ago #

    The template I am using seems to place the date on every post so I have ruled that out.

    Just to eliminate any confusion, I meant theme above not template and It is DePo Skinny that I am using as the basis of my custom theme.

  11. gideonstrumpet
    Member
    Posted 6 years ago #

    Can anyone tell me how to make it look different? Right now the asides are just showing up between posts as text on white backgrounds. I want to change the background color, put it in a box or something to make it stand out and look different. How do I change the style and where? Thanks.

  12. maijs
    Member
    Posted 6 years ago #

    danapalooza,

    Will check out the problem with post_date tag. Thanks for bug report!

  13. maijs
    Member
    Posted 6 years ago #

    gideonstrumpet,

    You can change your styling with inline css. Like,

    <div style="background-color: red; border: 1px solid yellow;">%post_content%</div>.

    Of, if you have styles defined in outer file, then just apply the styles, like

    <div class="my_post_style">%post_content%</div>.

  14. gideonstrumpet
    Member
    Posted 6 years ago #

    maijs, thanks for the tips. I'm not very adept at altering CSS, so where would I put that in the style.css file and how does it know that I'm referring only to the asides?

    Or do I put that in the asides template in the asides options area?

  15. maijs
    Member
    Posted 6 years ago #

    gideonstrumpet,

    If you use inline styling (include style definitions in tag attribute style="..") then it's sufficient to make it work. If you use outer file, like, style.css, then you need to define styles in style.css and then apply those in your tags.

    Both ways would work but defining in style.css is a cleaner approach.

Topic Closed

This topic has been closed to new replies.

About this Topic