Viewing 4 replies - 16 through 19 (of 19 total)
  • Hello,
    yes i will work with FTP ??

    so i take this Code in the function.php of the theme

    add_filter( 'promoslider_custom_query_results', 'my_query_results' );
    
    function my_query_results( $results ) {
      $posts = get_posts( array(
        'category' => 13 // You will need to lookup ID of category
        'numberposts' => 5,
      ) );
      $promotions = get_posts( array(
        'post_type' => 'ps_promotions',
        'numberposts' => 5,
      ) );
      $results = array_merge( $posts, $promotions );
      return $results;
    }

    then came this on the side:
    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘)’ in /kunden/xxxxxxxx/webseiten/xxxxxxxxxxx/wordpress/wp-content/themes/xxxxxxx/functions.php on line 32

    i take this code at the bottom of the function.php from the theme..

    mhh i dont now why isnt work..

    idea?

    best regards
    rw

    This is my function.php from the theme:

    https://pastebin.com/5cEb28eQ

    i dont now where must be the code..

    greets
    rw

    Plugin Author Micah Wood

    (@woodent)

    Doh… missing another comma after category number. That line should read:

    'category' => 13,

    WOW!!

    Great Support!!

    THX!! It works fine perfect ??

    best regards

    rw

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘[Plugin: Promotion Slider] Promotion pages "not found" when using custom permalinks’ is closed to new replies.