Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author Micah Wood

    (@woodent)

    What steps did you take to install the plugin? Are you working in a multisite environment?

    Is there any way I could get access to the backend of the site for troubleshooting purposes?

    Thread Starter bilis

    (@bilis)

    hi woodent, thank you for a prompt reply :).

    i’m using the auto install plugin inside WP. No, i’m no working in multisite environment.

    what do you mean by backend, is it access to the WP on my site or the hosting? please give me your email address or YM, GTalk etc for me to give the access to you.

    Plugin Author Micah Wood

    (@woodent)

    I am referring to the WP admin. The issue you mention is usually associated with flushing the rewrite rules after adding a post type, however my plugin should handle that automatically on activation. If it isn’t, I would like to know why.

    If you don’t mind sending me details via my web form: https://www.orderofbusiness.net/contact-us/

    I prefer not to post my email for spammers. Thanks!

    Thread Starter bilis

    (@bilis)

    I have sent the info thru your web form.

    hope the solution will benefited other user as well.
    thanx ??

    Hello,

    i have the same problem too. i changend the permalink.. the plug in doesnt work. ( error page ).

    please can you say why?
    i installed the WP3.3.1
    promotion slider 3.3.1 too.

    and by the way: i want to take some posts from the promotionslider and some posts from my blog (posts) in ONE slider. how does it work?
    sorry for my english.
    greets from germany..
    r.w

    Plugin Author Micah Wood

    (@woodent)

    @muckelchen,

    I believe the issue with the previous posting was a plugin or theme conflict. That is generally the first thing to check when something breaks. Start with this plugin troubleshooting guide at steps 3 and 4. If you still have issues, post back and let us know what you’ve tried.

    It is possible to create your own mashup of different post types into a single slider, but obviously we should get the plugin working again before addressing that.

    Hello,

    thx for reply..
    I make step 3 and 4 but ist not working fine.
    It′s very important for me to take the Blog posts AND the promotion posts on the startpage..
    i make this code in the page:
    <?php echo do_shortcode(‘[promoslider width=”624px”]’) ?> <?php } ?>
    so i see only the promoslider now i want the Blogposts category “slider”

    so i mean. i will write a blog.. so i checkbox the category slider.. this i want to see on the startpage too..

    the other problem is not soo improtant. (The linkproblem)
    example

    i make a new promotion .- only a articelpicture and change linking behavior ( i set a link in dest. URL.)

    this works fine.

    so i have a picture only and the link..

    second i make a articel/blog .. write this .. make a articelpicture und klick on checkbox slider.

    and this two examples i will see on the startpage..

    i hope you understand my english.. sorry for that..
    but its very important for me now..

    best regards
    r.w

    Plugin Author Micah Wood

    (@woodent)

    You can get both posts and promotions to appear in the slider using this hook: promoslider_custom_query_results.

    Just use it like this:

    add_filter( 'promoslider_custom_query_results', 'my_query_results' );
    function my_query_results( $results ) {
        /**
          * Do your custom queries here to fetch / combine the desired results
          * $results should be an array of post objects.
          */
        return $results;
    }

    ok .. i take this code to my code too.. but i dont now custom query results..
    wich querys i can do??
    can you explain me?

    best regards
    rw.

    Please can you say me.. the new code here? i need the promotion and post category slider.

    <?php
    /** Template Name: Startseite
     * Description:
     * @package WordPress
     * @subpackage Toolbox
     */
    
    get_header();
    ?>
    		<div id="primary">
    				<? the_breadcrumb(); ?>
    
    			<div id="content" role="main">
                 <?php if ( is_front_page() ) { ?><?php echo do_shortcode('[promoslider  width="624px"]') ?> <?php } ?>
    		  <?php if ( is_front_page() ) { ?> <? include (TEMPLATEPATH . '/sidebar-home.php'); ?><?php } ?>
    				<?php the_post(); ?>
    
    				<?php get_template_part( 'content', 'page' ); ?>
    <?php if (function_exists('kc_add_social_share'))
    			kc_add_social_share(); ?>
    
    			</div><!-- #content -->
    
    		</div><!-- #primary -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    Plugin Author Micah Wood

    (@woodent)

    You can use the get_posts() function to select the posts you want to use.

    For example:

    $posts = get_posts( array( // By default, posts will be fetched
      'numberposts' => 5
    ) );

    So this is how you would create your own mashup:

    add_filter( 'promoslider_custom_query_results', 'my_query_results' );
    function my_query_results( $results ) {
      $posts = get_posts( array(
        'numberposts' => 5,
      ) );
      $promotions = get_posts( array(
        'post_type' => 'ps_promotions'
        'numberposts' => 5,
      ) );
      $results = array_merge( $posts, $promotions );
      return $results;
    }

    This would just fetch the 5 most recent posts and promotions and display them in the slider.

    Plugin Author Micah Wood

    (@woodent)

    The code I just gave you would actually go into your active theme’s functions.php file.

    Hello,
    thx for the code.

    i have just one more question too..
    at the posts i want not the 5 most recent posts, just only 5 from one category of the posts. this category is named “slider”.

    must the code the same ? ore a little bit different?

    greets

    rw.

    i do this code:

    add_filter( 'promoslider_custom_query_results', 'my_query_results' );
    function my_query_results( $results ) {
      $posts = get_posts( array(
        'numberposts' => 5,
      ) );
      $promotions = get_posts( array(
        'post_type' => 'ps_promotions'
        'numberposts' => 5,
      ) );
      $results = array_merge( $posts, $promotions );
      return $results;
    }

    in the themes function.php

    then the site does not work.. this will be on the startpage:

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘)’ in /kunden/xxxxxxxxx/webseiten/xxxxxxxxxxxx/wordpress/wp-content/themes/xxxxxxxx/functions.php on line 34

    the x i make in this string.

    so i dont now what to do….:-(

    greets
    rw

    Plugin Author Micah Wood

    (@woodent)

    I updated the code… it was missing a comma. I also added a check for category.

    add_filter( 'promoslider_custom_query_results', 'my_query_results' );
    
    function my_query_results( $results ) {
      $posts = get_posts( array(
        'category' => 3 // 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;
    }

    Hopefully you weren’t making changes in the WordPress editor, but via FTP. Either way, you will need to edit the file via FTP since the site is broken.

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