Forum Replies Created

Viewing 15 replies - 1 through 15 (of 20 total)
  • Thread Starter superoctave

    (@superoctave)

    Sounds like you’re having some memory issues possibly, what hosting are you using?

    Great question, and I’m embarrassed to admit that I don’t know for sure. (The hosting was switched by the higher-ups to a different service and I was not involved with the process). I believe, however, that it is currently hosted by WP Engine.

    Here are the details listed on the settings screen:

    WordPress Version: 4.5.2
    PHP Version: 5.5.9-1ubuntu4.17
    MySQL Version: 5.6.29
    Server Software: Apache
    Your User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
    Session Save Path: /var/lib/php5
    Session Save Path Exists: Yes
    Session Save Path Writeable: Yes
    Session Max Lifetime: 1440

    Opcode Cache:
    Apc: No
    Memcached: No
    Redis: No

    Object Cache:
    Apc: No
    Apcu: No
    Memcache: Yes
    Memcached: Yes
    Redis: Yes

    WPDB Prefix: wp_
    WP Multisite Mode: No
    WP Memory Limit: 40M

    Thread Starter superoctave

    (@superoctave)

    Oh. My. Gosh.

    The fields (and permalinks) are suddenly / randomly working again. …Sortof.

    I deactivated/updated/re-activated the plugin that handles the custom post type permalinks. The fields are once again displayed on the edit page for the custom taxonomy entires.

    Something in that plugin must have been causing problems.

    However, the fields are still not appearing on the “edit pod” page (and the Pods Admin page still lists 0 fields for both pods), so I can’t remove or edit an existing field…

    Thread Starter superoctave

    (@superoctave)

    Have you tried going to Pods Admin > Settings > Clear Cache?

    Hey! Thanks for your quick response. I did try clearing the cache. It did not solve the problem.

    Disregard this… see below… [Since writing the original post, the problem has actually gotten worse: none of the custom post type entries are now displaying at all. The permalinks now show a 404 error. Even when I try previewing entries from their edit pages, it just shows an error. The custom taxonomy is still displaying correctly however.]

    Augh.

    Thread Starter superoctave

    (@superoctave)

    I have to admit that I’m a little frustrated that I didn’t get a single response. Bummer!

    Anyways, I managed to write a quick (or NOT) and dirty solution, using the “name__like” argument of the get_terms() function. It’s not the best way to do it, but it works for what I need.

    Thread Starter superoctave

    (@superoctave)

    Perhaps only a few of the features from DataTables can be used directly in TablePress?

    Thread Starter superoctave

    (@superoctave)

    Wow! This seems to be exactly what I was looking for. Very powerful – and very straightforward. Thank you SO much!!

    Thread Starter superoctave

    (@superoctave)

    No- I will definitely check it out!!

    I’ve found a number of plugins that do this sort of thing, but most of them are pretty outdated and didn’t play nice with the latest version of WP. If this one works, it could be exactly what I’ve been looking for. Thanks!

    Thread Starter superoctave

    (@superoctave)

    (Update #2):

    I have to be perfectly honest… I’m a little frustrated and disappointed that no one responded to my post – not even to point me in the right direction. It really would have saved me some time.

    Anyways, here’s a snippet of code I’ve been writing from scratch that could be used to do what I need. I’m posting it here in the hopes that it might help someone else, or if anyone has a suggestion to improve it:

    add_filter( 'the_content', 'check_content_thumbnails' );
    function check_content_thumbnails( $content ) {
    	if ( is_singular('post') ) {
    
    		$text = $content;
    		$replacementURL = "foo.jpg";
    		$reg_exUrl = "([a-z\-_0-9\/\:\.]*\.(jpg|jpeg|png|gif))";
    		preg_match_all($reg_exUrl, $text, $matches);
    		$usedPatterns = array();
    		foreach($matches[0] as $pattern){
    			if (!array_key_exists($pattern, $usedPatterns)){
    			$usedPatterns[$pattern]=true;
    			//$url=getimagesize($pattern);
    
    			if(!is_array(getimagesize($pattern))) {
        				$text = str_replace($pattern, $replacementURL, $text);
    			}
    
    			}
    
    		} //for loop
    		$content = $text;
    	}
    	return $content;
    }
    Thread Starter superoctave

    (@superoctave)

    (Somewhat of an update:)

    I found a plugin that does this (and works, even with the latest WP version), though it would be nice if I could do this on a per-post basis and not across the site.

    http://www.htmlremix.com/projects/wordpress-broken-image-fix

    Thread Starter superoctave

    (@superoctave)

    That CSS didn’t work- it simply stretched the image across the entire page at the top above everything, so I reverted to using the original code you posted. I like having the header image within the borders of the main body, like it is at the moment…

    Thanks again!

    Thread Starter superoctave

    (@superoctave)

    Is it just a top margin you want gone?

    Well, I just added:

    height: 100px;

    …to the CSS code and it seems to have done the trick!

    Thanks!!

    Thread Starter superoctave

    (@superoctave)

    Unfortunately not. The margin I think you’re referring to is shared by other elements of the page. That’s tricky.

    Drat. OK- so hypothetically speaking, if I removed this code and re-added the header image on the header page, is there another way I could produce this same effect and still be able to change its properties? Like- if I put the following code in a <div> and changed the CSS for it?

    <?php $header_image = get_header_image();
    if ( ! empty( $header_image ) ) : ?>
    			<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a>
    		<?php endif; ?>
    Thread Starter superoctave

    (@superoctave)

    (sorry- that posted twice)

    Thread Starter superoctave

    (@superoctave)

    Haha! No worries- I didn’t catch it myself.

    Yes. That works! Now- can I change the margins and padding just by adding to that CSS? Or change the height? The bottom part of the image is chopped off, I think.

    Thread Starter superoctave

    (@superoctave)

    I guess if it did anything, perhaps!

    I added the plugin and added the CSS you mentioned but it doesn’t seem to do anything. I also “removed” the header from the header section of the appearance tab…

Viewing 15 replies - 1 through 15 (of 20 total)