Jump to content

SOLVED: but saving this in case it helps anyone else... Error: Exception: Unknown Selector operator: '[empty]'


hollyvalero
 Share

Recommended Posts

 In a blog, I have a page field that references a library of writers (cbpage2) so their info doesn't have to be reentered for each post.
At the bottom of the post I wanted to list, " the last 2 posts by THIS AUTHOR, but obviously not include the CURRENT PAGE POST"

EDITING TO REMOVE ALL BUT THE apparent answer

 When I used title to match the variable $activepost it seemed to break - title too long? But when I matched it to the ID it seemed to work... 

    $author = $page
        ->cbpage2->id;
    $activepost = $page->id;

    $articles = $pages->find("template=post, limit=50, cbpage2=$author, id!=$activepost, sort=-cbdate");

 Screen Shot 2021-04-15 at 2.56.35 PM.png

Screen Shot 2021-04-15 at 3.11.42 PM.png

Edited by hollyvalero
Found an answer!
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...