• Th image_width shortcode parameter no longer works:

    [pagelist_ext image_width=”100″]

    The shortcode works fine without the image_width parameter; images are displayed at the size set for WP thumbnails. (In my case, 150px is the default WP setting)

    But when the parameter is included, pages just display the raw shortcode.

    https://wordpress.org/plugins/page-list/

Viewing 15 replies - 1 through 15 (of 27 total)
  • Thread Starter Abigailm

    (@abigailm)

    To confuse the issue further – the list and image_width parameter does work if another parameter is set, example:

    [pagelist_ext include=”150, 190″ image_width=”100″]

    So something of a mystery…..

    Plugin Author webvitaly

    (@webvitaly)

    Hm, weird.

    This shortcode is working for me:

    [pagelist_ext image_width="100" include="6,8"]

    Which theme and plugins are you using?

    And also try to retype shortcode manually because sometimes WordPress changing the formatting of the quotes on pasting the shortcode and it can cause the issue.

    Thread Starter Abigailm

    (@abigailm)

    Have you tried it without the include parameter?

    My problem seems to be only when the image width is the only parameter, on pages where I was assuming the default behavior of incorporation of sub pages.

    It seems to me that what has been lost is the defaults that are specified at https://wordpress.org/plugins/page-list/other_notes/ — so it is not picking up subpages without a specification, and where another parameter is used but image size not specified, it no longer defaults to the small 50px thumbnail width.

    However, I tried coding it as
    [pagelist_ext image_width=”100″ child_of”#”] where # is the page-id for the current page (in order to force inclusion of sub pages) — and that doesn’t work either.

    From further testing, the code [pagelist_ext child_of=”#”] doesn’t work either -no matter what page is specified — so perhaps that could be the root of the problem.

    If I simply use [pagelist_ext]- then it works fine — except the images are now showing larger than I would like them. (at 150px rather than 100px). I supposed I can fix that with my own custom CSS… but I’m trying to puzzle out what has gone wrong with the shortcode.

    Again, it was working fine before the 4.4 WP upgrade.

    This is on a site using a child of ThemeZee’s Smartline — switching to Twenty Fifteen didn’t help. I’ve tried deactivating various individual plugins, but that didn’t seem to make a difference either.

    Plugin Author webvitaly

    (@webvitaly)

    I tried this shortcode and it sets width of the image to 100px:

    [pagelist_ext image_width="100"]

    Actually it does not change the size of the image.
    The thumbnail image is still 150px as a default thumb size in WordPress.
    The plugin just adds width="100" param what changes the visual appearance of the image.
    Maybe your theme is overriding the CSS styles for the image and it reverts back to original size.

    IMHO fixing it with custom CSS in your case should work fine.

    Thread Starter Abigailm

    (@abigailm)

    Actually, you don’t understand the problem.

    If I enter the shortcode,

    [pagelist_ext image_width=”100″] on the page on the backend –then all I see on the front end is the short code displayed:

    [pagelist_ext image_width=”100″]

    Nothing else. No pictures, no links, no excerpts. The short code doesn’t work at all with that specification; and it doesn’t work at all either in combination with the child_of parameter — and the child_of parameter does not work when used alone either.

    It does work in combination with the image specification in combination with some other parameters, but it shows the WordPress default 150px and not the pagelist default of 50px (as specified in your documentation)

    It worked fine until yesterday, and then stopped working when wordpress was upgraded to 4.4.

    It is NOT the theme because the problem continued after I turned OFF my theme and instead activated the Twenty Fifteen theme (with the latest update)

    I understand what a CSS width specification does. My point is that some of the shortcodes of your plugin have stopped working for me. I’ll test further to see if there is a conflict with any other recently upgraded plugins. I’ve already tested the ones that I thought were most likely to cause a conflict. I’ll let you know if I get anywhere with this.

    Thread Starter Abigailm

    (@abigailm)

    Just so you know, I have now tried disabling ALL plugins other than Page-list and the problem persists.

    It’s a mystery to me.

    It works fine with this, including carrying the size specification:

    [pagelist_ext include=”295, 265″ image_width=”100″]

    Just not with this:
    [pagelist_ext image_width=”100″]

    No error messages showing up — the system simply doesn’t parse the shortcode.

    If you know of any good debugging system for shortcode, I’d be happy to try it and report output.

    Plugin Author webvitaly

    (@webvitaly)

    Thats really weird because if plugin register the shortcode and WordPress parse it than shortcode should be replaced with something (content or empty space).

    Unfortunately I dont know any shortcode debugging tools.

    shortcodes for another plugin are also not working for me.
    I’m having similar strange issues. I find that my shortcodes show up as text. Example:
    [sc:gallery]

    BUT… if I add the beginning of another shortcode like:
    [sc:gallery][sc

    then the first part actually works and I have the additional fragment ( [sc )as text.

    I’m hoping it’s just a wordpress 4.4 issue and that the next wordpress update will resolve it and resolve it soon.

    I’m pretty sure it’s a 4.4 issue and not a conflicting plugin issue. I’ve tested on a couple sites.

    I’ve seen other sites pointing at 4.4 as the cause for other broken shortcodes. like:

    https://theme-fusion.com/knowledgebase/avada-3-8-8-blog-shortcode-doesnt-work-after-wordpress-4-4-update/

    Thread Starter Abigailm

    (@abigailm)

    Well, it’s still a mystery, but now it’s working on my site so I don’t have a clue. It’s not 4.4 alone because I tested it on new clean install of WP & it worked there. So then I deleted the page-list plugin and reinstalled & reactivated — and created a new page .. and it’s working. But it’s still not working on the pages where it was previously entered — if I delete the entry and retype it on the same line… still doesn’t work. But if I type the shortcode on a second line, and then delete the first line where the shortcode was before.. then it works…

    So it’s crazy. It must be something about the way pages were regenerated from the database after the upgrade. I did figure out that when the shortcode was displaying on the page, the second quote was displaying as a “fancy” quote rather than the regular quote. I couldn’t see any reason for that in the source code (“text” view of edit page) for the page… and yet there it was.

    I also saw in issue like joshkho described where if I added a second full short code, the first would work and display as well as the second… that’s what led me to the solution of retyping the shortcode on a second line and deleting the first.

    Anyway… sorry to waste your time with this….

    Sorry wrong thread

    Plugin Author webvitaly

    (@webvitaly)

    But if I type the shortcode on a second line, and then delete the first line where the shortcode was before.. then it works…

    This can be because of some invisible characters and because of them WordPress cannot parse the shortcode properly. These invisible characters can be inserted after copy&paste.
    And after re-typing the shortcode the issue is solved because there is no invisible chars in freshly typed shortcode.

    This shortcode is not rendering after 4.4:

    [feature icon=”fa fa-users” title=”Community Outreach” color=”11″]

    Can someone suggest how to change this to make it render in 4.4? Thanks.

    Okay, as someone else mentioned earlier, some of this seems to be a parsing/caching/syncing issue – rather than an actual conflict. I went in and just re-typed some of my shortcodes – without changing anything – and after I re-saved the page everything rendered as it should. That’s the only change I made – I just manually retyped the shortcodes. Note that copy-and-pasting won’t work. You need to type it by hand. But for me I didn’t even have to retype whole sections – just some of the shortcode, and even later shortcodes that I didn’t retype then rendered correctly.

    andytela

    (@andymoonshine)

    I went in and just re-typed some of my shortcodes – without changing anything – and after I re-saved the page everything rendered as it should. That’s the only change I made – I just manually retyped the shortcodes. Note that copy-and-pasting won’t work. You need to type it by hand.

    You are a saviour!

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘Shortcode broken with WP 4.4. upgrade’ is closed to new replies.