Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

get_nodes_from_keywords()

Description

Return an array of all node IDs where the node contains any of the keyword IDs passed

Parameters

ColumnTypeDefaultDescription
$keywords array array An array of keyword IDs for the indexed content

Return

array Matching node IDs

Location

include/node_functions.php lines 1580 to 1584

Definition

 
function get_nodes_from_keywords($keywords=array())
    {
    if(!
is_array($keywords)){$keywords=array($keywords);}
    return 
ps_array("select node value FROM node_keyword WHERE keyword in (" ps_param_insert(count($keywords)) . ")"ps_param_fill($keywords,"i")); 
    }

This article was last updated 23rd June 2022 16:05 Europe/London time based on the source file dated 8th June 2022 10:20 Europe/London time.