Make WordPress sticky posts behave as normal using caller_get_posts=1 isn't working

I'm making a specific single.php template. It's using a jQuery slider to slide from one post to the next. In order to show the right post first, I have to use 2 loops - one to call the first...

Wordpress Sticky Posts with Custom Post Types

So i need the ability to have a featured or "sticky" post in wordpress, and it occurred to me! Why not use the Sticky Posts facility, but after doing a bit of reading it seems that Wordpress...

How do I display a custom archive page under a custom post in Wordpress?

I am working on my Wordpress portfolio site and created a custom post type for my portfolio section. When a user clicks on my portfolio link it takes them to archive-portfolio.php which displays a...

how to display wordpress post excerpt only on the image post which has excerpt on hover

I have created a gridview of wordpress posts, and i am trying to display excerpt on mouse hover for each thumbnail(post) but if any thumbnail(post) don't have any excerpt content it should not...

WordPress broken pagination

Pagination on my custom post page was working fine but after adding few posts it got broken - the older post link is not working any more. Please suggest how can I fix it? I have tried disabling...

How do I Pass An Array Between Two Views Using the SWRevealViewController?

QUICK BACKGROUND: I have an app that shows a list of songs in a searchable, tabbed interface (a.k.a. "Cheers View Controller"). There are two tabs, one for each category of my cheers. I have a...

in_array() expects parameter 2 to be array, string given in Classipress

I'm using Classipress theme for wordpress, and I'm trying to sticky my featured ads on the on in categories . I found a code that is return this error: Warning: in_array() expects parameter 2 to...

Sticky posts managment in Wordpress

I have a problem with sticky post. The code that I use works, but the sticky posts are showed on every query, and I need a modification in order to show them just when the categories that they are...

Limit the amount of sticky posts in wordpress

I have a website in development and the customer wanted a news and F.A.Q page. Not a problem! He wanted to be able to add his own posts (to both news and F.A.Q.. Again, not a problem! The last...

WordPress query - order by date and alternate by category

I have a custom post type called "services" with a custom taxonomy called "location". Each post is categorized as either "Location A" or "Location B". I need to query all posts from the "services"...

Adding a link into wordpress shortcode

i have a shortcode that posts recent blog entries from a certain category on one of my web pages, however i want to display a static link at the end of everypost, is there anyway to do this? the...

How to Parse the JSON Data in the Web Page of Google Play?

I use the curl to get the POST data which is used in the web page of a Google Play app. The return data is a special JSON format. Is there any way to parse or decode it in PHP? Thanks. <?php $url...

Wordpress Query by Tag(Priority) then Category(backfill)

I've search high and low but have been unable to find a solution to my problem. Hopefully this isn't a duplicate question that I was unable to find through search here and on google. I'm...

Parse error: syntax error, unexpected 'endforeach' (T_ENDFOREACH)

I'm trying to create a page for WordPress "category.php" from the code in this tutorial: http://scratch99.com/wordpress/wp-seo/siloing/ My current theme (Sociallyviral by Themeforest) there is no...

Wordpress grid not showing all posts

I have been building a masonry styled wordpress theme, and I've run into a road block where my grid will not show all of the published posts. I currently have my posts per page set to 100 posts,...

Wordpress and AJAX Modals

Challenge: Load Single post page from WordPress inside a DIV with ID of reveal Successes: Using the following JS I am able to pull the main element and its children into the reveal...

Display sticky posts first with WP_Query and category__and

Trying to display common posts from multiple post categories using WP_Query and category__and. Following is the query: $query = array( 'category__and' => array( 'cat-1', 'cat-2'), ...

Parsing JSON content into array (Swift3)

I'm new to JSON and i'm trying to store multiple values in variable. Here I have sample output I got from my site 2016-12-04 22:17:53.137949 API Demo[739:12497] [] nw_host_stats_add_src recv too...

Vuejs nested JSON response

Here goes: I can access a vue model value, created from a ajax request in a loop like this: {{ post.id}} But i cant access this: {{ post.featuredImageUrl.id}} . <div id="frontpage"> <div...

Primary Category not working in wordpress

I'm working on a wordpress theme. The sticky article is posted at the top with a featured image, and the breadcrumbs beneath are displaying in alphabetical order no matter what.. There are 3 bread...

Why does the enqueued owl carousel work with the NewsMag Pro theme version, and not with the default WordPress Installation?

I am trying to write and submit a new WordPress plugin, and I have the goals of needing the plugin to show a "snippet" of our main site newyorkbusinessreview.com including our books selection and...

How to disable/hide Wordpress theme footer on all Woocommerce product category pages using PHP?

Thank you for taking the time to help me in advance! I am trying to get a themed Wordpress website (Mr. Tailor) with Woocommerce not display the theme footer only on the product category pages...

Get sticky posts from specific category in WordPress

I want to check if a category has sticky posts. To do that, I use $sticky = get_option( 'sticky_posts' ); on the archive.php. But it shows all sticky posts from the blog. Not only from the...

Add array of json (which contain inner array) in realm using swift

I have created API which generate JSON, that JSON looks like this [ { "id": 105, "date": "2018-09-06T22:37:57", "date_gmt": "2018-09-06T17:07:57", "guid": { "rendered":...

wordpress sticky post on archive page with pagination

I have category page which is redirecing to archieve.php. you can see here : https://www.dealfinder.lk/category/dining/ There are two sticky posts at the top. Up to 25% OFF at &Co Pub and...

TypeError: this.posts.filter is not a function using Vue js and wordpress api

I'm trying to fetch some posts in wordpress using the formidable pro api and vue js. The data loads correctly initially, however, I get TypeError: this.posts.filter is not a function when I click...

How to solve errors like void' is not assignable to parameter of type '(value: [Post, any, {}[]]) => void'

Am constantly getting the error while trying to fetch some stuff in Ionic from Wordpress. [ng] ERROR in src/app/post/post.page.ts(30,37): error TS2345: Argument of type '(post: Post) => void' is...

How to parse json with Alamofire in Swift 5

I'm new in iOS programming language and I'm trying to fetch data from a WordPress JSON into a table view. I'm encountering the error: value of type 'Any' has no subscripts when I try to...

Sticky Posts on Top of Category Query

I use this query on the Frontpage to display three posts from specific categories in a wp_query. The articles in the query are displayed randomly. Now the posts that are sticky would like to stay...

Include Sticky Posts with Custom Query Posts

I'm working with Custom Query in WordPress, Basically, I'm showing 4 most recent posts of a category having ID 4 and my query is as follows:- $args = array( 'post_type' => 'post' , 'orderby'...