Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter scott5150

    (@scott5150)

    Here’s another version of the site in a staging environment. All plugins and the theme itself are updated to the most recent versions.

    https://devonline.staging.wpengine.com/

    I think the problem has to do with two jquery installs … still trying to figure out what to do about that …

    Thread Starter scott5150

    (@scott5150)

    Our host is WP Engine. They have a cool staging feature that lets you make a copy of the site and do all sorts of things like that. On our staging version, I swapped in the new theme and it did not help one bit.

    Thanks for your input

    Thread Starter scott5150

    (@scott5150)

    Issue resolved. There was an extra quote in a css rule

    Thread Starter scott5150

    (@scott5150)

    Hmmm … most of the validation errors have been cleared up and it still doesn’t display correctly … this is a weird one …

    I’m reading this now: https://stackoverflow.com/questions/18549726/element-link-is-missing-required-attribute-property

    Thread Starter scott5150

    (@scott5150)

    Hello. Yes. I noticed that as well … at some point this happened and I don’t recall doing anything that could have caused that. I’m not too good at debugging these wordpress sites, any idea where I can turn to figure this out? Any articles I could read would be helpful … I literally have no idea what to look for.

    I see it’s having trouble with some lists I have in these popup modals (it’s a plugin) … but when I examine the code in those lists, it all appears to be right. Dreamweaver is good about getting your attention with different colors and such when there is a an html or css syntax error, and I don’t see anything like that in the code I’ve pasted in.

    A lot of the validations errors appear to have to do with the slider which is built in to the theme. I don’t even know what to do about all of that. Aren’t hacks the norm in extreme CSS endeavors like that?

    Thread Starter scott5150

    (@scott5150)

    On this one, it wasn’t necessary to use that first line (query_posts) at all. You can tell wordpress to do what I need from within array() object. In the following code, the line:

    'post_type' => 'post'

    Was changed to:

    'category_name' => 'world-dryer-events'

    Here’s the whole loop revised:

    <?php if ( have_posts() ) :
                while ( have_posts() ) : the_post();
                    $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1;
                        $args = array('
                            offset'=> 0,
                            'paged'=>$paged,
                            'posts_per_page' => get_option('posts_per_page'),
                            'post_type' => 'post'
                            );
                        $all_posts = new WP_Query($args);
                        while($all_posts->have_posts()) : $all_posts->the_post(); ?>
    
                        <?php
                        /* Include the Post-Format-specific template for the content.
                         * If you want to overload this in a child theme then include a file
                         * called content-___.php (where ___ is the Post Format name) and that will be used instead.
                         */
                        $format = get_post_format();
                        if( false === $format )  $format = 'standard';
                        get_template_part( 'postformats/'.$format, 'medium' );
    
                        ?>
    
                        <?php endwhile;
                endwhile; ?>
    Thread Starter scott5150

    (@scott5150)

    SO, the problem ended up being that I was attempting to use the dynamic image location method (which contains PHP) from with the editor’s window.

    Thread Starter scott5150

    (@scott5150)

    I gather you cannot use PHP in the editor Window? Maybe that’s why the dynamic image linking method will not work. I keep trying to use it in the Editor WYSIWYG window.

    How can I dynamically link images when they are inserted via the editors window?

    thanks

    Thread Starter scott5150

    (@scott5150)

    I ran

    echo bloginfo('template_url');

    That tells my my template URL is: https://sterling-testing.com/wp-content/themes/Astrum

    However most of my images were uploaded by wordpress to this URL: /public_html/wp-content/uploads/2013/10

    SO in order to use the images at the first URL, one would think all I would need to do would be to upload all my images into the first directory, right? Still didn’t work when using:

    <a href="#"><img src="<?php bloginfo('template_url'); ?>/images/logos-arcat.gif" class="float-left home-logo-pad" alt="ARCAT" width="164" height="163"></a>

    Anybody know what’s happening here? Seems freaky to me, but then again, I’m fairly new to the world of wordpress.

    Maybe some of the trouble is because I am inserting this code into the page editor window? I don’t know … I noticed it freaks out on characters like the Greater than Symbol … even though I used the entity …

    Thanks:
    Scott

    Thread Starter scott5150

    (@scott5150)

    Nothing was happening on the other one. This is very important, so, in this one I’m asking for other information that I didn’t request in the first post. It would be better to continue with this post. It more accurately describes my dilemma.

    Should I delete the other one?

    Thanks.

    Thread Starter scott5150

    (@scott5150)

    I’m the same poster. This one asks for some PHP to determine where to set my dynamic links to. Thanks.

    Thread Starter scott5150

    (@scott5150)

    Hello. Thanks. I see where you are going with this. The images folder is usually always right next to the css directory. For some reason it didn’t work.

    Here’s what i tried:

    <a href="#"><img src="<?php echo get_stylesheet_directory_uri() ?>/images/logos-arcat.gif" class="float-left home-logo-pad" alt="ARCAT" width="164" height="163" /></a>

    I wonder if part of the problem is that I can’t vouch for the WP install this place did before I got here. It looks like it was all installed directly inside the servers “public_html” folder. It’s not in any subfolders. Is WP anticipating another level in the root directory?

    Also, is there a way to echo out what my images directory is? I wonder if I just have a weird images path on this one. I really can’t seem to figure out why no dynamic images will show on this one when I’ve had this process work so well in the past.

Viewing 12 replies - 1 through 12 (of 12 total)