Wednesday, May 15, 2013

[Help Wordpress] What is the easiest way to do:


Hello again, I have a problem with php queries of wordpress in your slider.
When I edit a slide in the custom slider (of Royalslider of course) and add php code to list posts from category, such as:


$catquery = new WP_Query( 'cat=1&posts_per_page=2' );
while($catquery->have_posts()) : $catquery->the_post();
?>












It only writes


have_posts()) : $catquery->the_post(); ?>


This code works perfectly in a widget, but does not work in the royal slider. Any help?



.

help.dimsemenov.com

No comments:

Post a Comment

Search

Other post

[Wordpress issuses] drao on "Theme change"
drao on "Theme change"
I have tried several times in the last week to change the theme of my blog. As soon as I c...
[Wordpress issuses] drao on "Theme Change"
drao on "Theme Change"
I have been trying to change my blog theme. Whenever I select a theme and press ACTIVATE, ...
[Wordpress issuses] andrewburnsme on "Limit Storys on front page,"
"
Hi there, was needing help on how to set a post to display say a picture and some text abo...
[Wordpress issuses] justjennifer on "Can I renew my site for $17 or remove my content/have domain name elsewhere?"
justjennifer on "Can I renew my site for $17 or remove my content/have domain name elsewhere?"
I'm not sure which price you are talking about exactly, but I assume domain registration a...
[] [Mobile] TOUCH - A lighter-than-air WP theme, by Bonfire. (Mobile)
[Mobile] TOUCH
[Mobile] TOUCH - A lighter-than-air WP theme, by Bonfire. (Mobile)Back to Home »Mobile »[M...