The problem was in additional symbols ”
in $attr['ids']
array. So I’ve changed:
$atts['include'] = str_replace(array("»","″","”"), "", $atts['include']);
$atts['orderby'] = str_replace(array("»","″","”"), "", $atts['orderby']);
$atts['order'] = str_replace(array("»","″","”"), "", $atts['order']);
$atts['exclude'] = str_replace(array("»","″","”"), "", $atts['exclude']);
And now everything ok.
Related Posts:
- Split Content and Gallery
- How to return loop contents
- How do I get the attributes of a short code from a post?
- Return vs Echo Shortcode
- Two custom loops, pagination, offset
- as a shortcode within the loop?
- Related Posts loop – offset
- Adding shortcode closing tag after a loop
- What are the disadvantages of using global variable?
- Displaying terms based on loop posts?
- Shortcode with a foreach and arguments
- Output loop leveraged shortcode twice on one page
- Custom Loop Using Shortcode in Custom Page Template
- Shortcode in posts called by ajax is not working
- Trying to get property of non-object in shortocde
- Get post offset/posts page offset in single post page (outside the loop)
- Loop Offset for tag based “Related Posts”
- WordPress shortcode in content, output in sidebar?
- Query posts only with actual text content (not including shortcode or images)
- How to put a block of code between [shortcode][/shortcode] in do_shortcode()?
- Offset Loop by 1 , Limit next loop to 1 (Most Recent) Post
- Offset for Loop
- How can I pass additional params to a shortcode while in a loop?
- Get a Post Loop based on Logged in User information into a Shortcode
- How to add pagination in Terms
- Split Content and Gallery
- Shortcode for pulling specific Post Title outside loop when ID is passed in
- Style first 3 posts differently and use a 2nd loop to get rest of posts / offset and pagination broken
- Have multiple loops on a page appear after/between page content
- Using shortcode within shortcode with dynamic variable
- How wp maps urls into files
- Jquery Slider for profile template
- Get excerpt using get_the_excerpt outside a loop
- Should I use loop in the single.php file?
- wp_list_categories: get latest featured_image of category
- WordPress Alphabetical Glossary close div in loop
- Specific Loop For 2 Within Each
- Exclude filter on front page
- category__not_in — anyway to use category name instead of id?
- Filtering posts by multiple taxonomies
- Exclude first 2 posts with meta_key from loop
- Make a custom loop inside single.php with pagination
- Why do I get `Call to a member function have_posts() on a non-object `? [closed]
- Help with Changing loop.php?
- How to split a loop into two columns
- Category Ajax call
- How to use offset in WP_Query
- Change front-page layout after x amount of posts ( while in the same loop)
- Transient loop issue
- popular post weekly and monthly
- How can i use the same template file with a widget and category loop?
- WordPress Loop inside Loop?
- Loop in Related Posts WordPress
- Conditional query that displays on Woo product attribute pages
- How to inject posts from certain category on home page
- Listing subpages title and content and styling the first iteration differently
- Showing sticky posts with get_posts()
- single.php – how to mark current page in the loop
- Cannot retieve the_content() and the_author() – both returning empty strings
- How to order by multiple fields using standard query_posts?
- Get 1 more post in loop
- Make loop alphabetical
- How to check if a product is purchased within the last 365 days before displaying something
- How do I get my loop.php to properly paginate?
- How to display first post
- Pagination on custom post type on front-page.php
- get_template_part() Not Working in Loop
- get_delete_post_link() inside Loop stubbornly returns nothing
- CPT while loop not working
- Problem with Front-Page.php loading recent posts
- Comments_template doesn’t work
- Get markup for post without loading into the template
- Where to add offset?
- How to synchronize The Loop with the max post per page?
- How to add a byline to all the pages?
- Displaying member join date on page
- Ascending order has strange effects on wordpress loop
- get post images to link to external sources
- Can’t limit posts_per_page in loop
- Slug is changing when I use WP_Query in a metabox of a post
- How to execute a user loop with shortcode
- Custom loop not working in singular.php, working in other pages
- Loop Posts Outside of WordPress Installation
- Strange problem with wp_get_attachment_image_src database (db) query count
- How to include posts from one category, into a separate category of posts?
- how do i make this loop work
- Making a specific page wordpress compatable that is not index
- change the_content images for different sizes (Desktop, tablet, mobile)?
- display only parent replies count in index.php
- using the loop on a page
- WooCommerce custom loop pagination on front page
- Eliminate duplicates in a foreach loop [closed]
- Tag custom loop show posts
- While loop inside another while loop
- Loop with Custom Post Type Taxonomies and Interstitial Code
- Question about custom plugin
- loop mix my child-category and parent-category
- Fix html inside a for loop [closed]
- Insert multiple custom components after x-number of posts
- How to get files from loop for zip