Home Forums Weaver X Tutorials and Hints tutorial to add and display custom post Re: tutorial to add and display custom post


Using the WP loop is VERY tricky. If you have a shortcode/plugin that tries to run the loop, as yours does, then you will mess up the instance of the loop used by the page or post processing. In other words, you can’t nest instances of the loop without a lot of special processing, or things simply get lost.

If you need an example, you could look at the code for the Weaver page with posts template (paget.php, I think). There is also similar code in the Weaver Show Posts shortcode.

So, it is more of a theme related issue (actually, any theme, not just Weaver).

And you are asking PHP and WP questions that are way beyond the level of support we provide – which must be theme or Weaver plugin related only. We are sometimes pretty broad in that interpretation, but creating general PHP code is beyond that.