• Resolved kevgreek

    (@kevgreek)


    I’m using Post in Page and it is working great except when I use a category parameter.

    When I use the shortcode [ic_add_posts showposts=’5′] everything works great and all posts are formatted correctly.

    But when I use the shortcode [ic_add_posts category=’in-the-news’ showposts=’5′] the correct posts are being pulled but they lose all formatting.

    Any suggestions?

    http://wordpress.org/extend/plugins/posts-in-page/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Eric Amundson

    (@sewmyheadon)

    Hey kevgreek,

    Does this happen for any category view?

    Are you using these shortcodes in different places, or on the same page?

    What I’d do would be to use Firebug or Google Chrome Dev Tools to try to identify the markup and CSS applied to each view and see what’s changing.

    Hope that helps. If you want to post a link or two, I’m happy to take a look.

    Thread Starter kevgreek

    (@kevgreek)

    It happens for all categories and I’m using the two short codes on different pages. I will try Firebug and see if I can figure it out. Could you explain a little more what you mean by “the markup”?
    Thanks

    Thread Starter kevgreek

    (@kevgreek)

    Okay I figured out the problem. When I add the category parameter to the shortcode WP is adding a “pre” tag that is causing the issue and not allowing the posts to format correctly. How to keep WP from adding the pre tag?

    Plugin Author Eric Amundson

    (@sewmyheadon)

    Hey kevgreek,

    Could you explain a little more what you mean by “the markup”?

    Certainly, I was just referring to the HTML within the page. Often we think of CSS & HTML as styles & markup, respectively.

    When I add the category parameter to the shortcode WP is adding a “pre” tag that is causing the issue and not allowing the posts to format correctly. How to keep WP from adding the pre tag?

    Where is the <pre> tag being added? Happen to have an example link?

    Thread Starter kevgreek

    (@kevgreek)

    Here is a link to the post page I’m having trouble with: http://newfangledconfections.com/about-us/in-the-news/

    Here is also a link to a screen shot showing where the pre tag located (highlighted in blue). When I remove this tag with the Google dev tools the post formats correctly. http://newfangledconfections.com/post-in-page/Screen-shot1.png

    Plugin Author Eric Amundson

    (@sewmyheadon)

    Howdy kevgreek,

    Taken a quick look and the cause isn’t jumping out at me.

    I can tell you that there’s no facility within the plugin to add the <pre> tag, so I believe that’s coming from somewhere else.

    Questions:

    1. What theme are you using?
    2. What plugins? Any that mess with categories or code formatting?
    3. Have you tried switching the theme to a default like Twenty Eleven or Twenty Twelve to see if the problem still happens? This is a good way to isolate the theme.
    4. Similarly, you can isolate plugins by disabling them all (except PIP) and then re-enabling one-by-one until the problem occurs.
    Thread Starter kevgreek

    (@kevgreek)

    Okay I solved the problem. It was a simple fix. I was able to remove the pre tags in Classic Editor – Text mode. I swear I tried that first and it didn’t work. Sorry for the inconvenience.

    Plugin Author Eric Amundson

    (@sewmyheadon)

    Hey kevgreek,

    Glad to hear it’s solved.

    Have a great week!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Lose formatting when using category parameter’ is closed to new replies.