Viewing 15 replies - 16 through 30 (of 32 total)
  • Let’s take a different tactic, then. Let’s go back to your original paste: http://pastebin.com/wSAD5fPg. On line 4, between

    $result = get_child_pages_by_parent_title('brushes');

    and

    foreach ($result as $xx) {

    Put this code: var_dump( $result );

    Your code should look like this:

    $result = get_child_pages_by_parent_title('brushes');
    var_dump( $result );
    foreach ($result as $xx) {

    I want to see what your function is returning.

    Thread Starter mostcla

    (@mostcla)

    I just did paste the code
    http://pastebin.com/YumsKP2W

    nothing happened …

    Do you receive any error messages?

    Copy and paste this at the end of your functions.php:

    function get_child_pages_by_parent_title($pageId) {
        // needed to use $post
        global $post;
        // used to store the result
        $pages = array();
    
        // What to select
        $args = array(
            'post_type' => 'page',
            'post_parent' => $pageId,
            'posts_per_page' => -1
        );
        $the_query = new WP_Query( $args );
    
        while ( $the_query->have_posts() ) : $the_query->the_post();
            $pages[] = $post;
        endwhile;
    
        wp_reset_postdata();
        return $pages;
    }

    Does var_dump( $result ); return anything now?

    Thread Starter mostcla

    (@mostcla)

    I did copy and paste to the end of function.php file

    this message appeared:
    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    I can’t fix it anymore ..

    Thread Starter mostcla

    (@mostcla)

    dear,
    I did this check the link of the function.php

    http://pastebin.com/M1BY73TS

    I did copy and paste but didn’t work… maybe I made it wrong can you make a look what is the wrong

    On line 2253, between the lines

    add_filter('tesla_slide_options', 'revoke_compatibility', 10, 3);

    and

    function get_child_pages_by_parent_title($pageId) {

    you have an extra }. Delete that extra bracket and see if anything changes.

    Thread Starter mostcla

    (@mostcla)

    I only have to delete them?

    Thread Starter mostcla

    (@mostcla)

    Mate, can I give you username and password to check it?

    Thread Starter mostcla

    (@mostcla)

    Ok I did delete it
    check what happened in the page
    http://encoregfx.com/brushes/
    I think it works but there is one wrong

    It seems to be working. Does “test22” have a featured image assigned to it? Also, you may get better answers if you post in the support forum for your plugin: http://wordpress.org/support/plugin/simple-download-monitor.

    Thread Starter mostcla

    (@mostcla)

    Yes I did uploaded featured image now.
    No I don’t want to use simple download monitor

    Thread Starter mostcla

    (@mostcla)

    Yes it works but can you fix the problem please
    can you open the page
    http://encoregfx.com/brushes/
    the image are not same size

    Thread Starter mostcla

    (@mostcla)

    Thank you very much it works now 100 per cent!

    Mate one more question,
    I want to make like this exactly in this page
    http://www.whitedots.net/portfolio-category/templates/

    With image and under it name of the project and when you click on it it will pop up with new screen to watch the video.

    If you can’t make the pop up, just give me php code for the image and under it name …

    I want to make that to my video pages.

    Looking at that site, it appears to be using a lightbox plugin called prettyPhoto: http://wordpress.org/plugins/prettyphoto/

Viewing 15 replies - 16 through 30 (of 32 total)

The topic ‘Style sheet and PHP ECHO’ is closed to new replies.