• Hi!
    I like your plugin very much, but i couldn’t place it in the sidebar OR any widget space.

    It works great as content for pages, but I can’t understand, how to place it to sidebar or widget or something like that. Is that possible?

    If I choose APL widget, I can only select title and preset name. How could I get the list itself?

    When I place shortcode to html-widget, it won’t show.
    When I place the “APL widget”, it breaks the website.

    kindest regards
    Alex

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author EkoJR

    (@ekojr)

    Thanks for taking the time to report this. I’ll have to take a look to see what may be causing the issue with the extended widget class.

    Meanwhile, you could use the “Text” widget and paste the post_list shortcode (sounds like you already attempted). If that doesn’t work, it could be because your theme doesn’t have shortcodes enabled for it. In that case, you’ll need to add the following line to your (child) theme’s function.php file.

    add_filter( 'widget_text', 'do_shortcode' );

    That should fix the issue. Otherwise there’s still the PHP concept, which would be more complex approach that developers can utilize.

    Thread Starter pocomaxa

    (@pocomaxa)

    Thanks for your response.

    First of all thanks you for your help. The shortcode works. I should have use TEXT widget, while I tried HTML widget. It works perfectly with TEXT widget.

    But could you please help with the code?

    This is how it looks: https://sun1-22.userapi.com/eM-aM0zFWD-5ZPvxGj3b7ts459n9dI9Ya9EEfQ/XKgba0ee3sY.jpg

    I’d like to have date format like DAY.MONTH.YEAR (like 31.05.2020)
    Also how can align the text vertically in the middle and make each picture appear on the next line?

    This is the display content i use:
    before: (p style=”font-weight: 800;font-family: Roboto Condensed;font-size: 15px”)
    list content: (img src=”[post_thumb]” /)(a href=”[post_permalink]”>[post_title] – [post_date format=”d-m-Y”]
    after: (/p)

    i changed < and > with ( and ), because they were decoded

    Thanks in advance and best regards.
    Alex.

    Plugin Author EkoJR

    (@ekojr)

    The easiest way is to just add <br /> at the end of “List Content”. Most of the HTML & CSS is left to the user to design and structure.

    Regarding the post_date format, it looks like shortcode attributes need to be single quotations now, and it was reverting to the default format. Although, I thought at one point in the past there was an issue with single quotations; something may have changed with WP’s parse.

    It should work by replacing the post_data shortcode as [post_date format='d.m.Y'].

    Thread Starter pocomaxa

    (@pocomaxa)

    Thanks for your respond, date format is now working.

    But I cannot use <br /> after list content, because I have posts with titles of different length. And I have huge gaps after those long-title posts.. I thought, there’s something with the HTML code, that makes next line start after all the pictures and stuff. But I totally forgot it..

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Widget placement’ is closed to new replies.