Ken
Forum Replies Created
-
Forum: Plugins
In reply to: [AMP] ERROR: insert three pictures in the postRemoving the custom function fixed it. Thanks.
Forum: Plugins
In reply to: [AMP] ERROR: insert three pictures in the postFYI: I was using this custom function before. Should I remove it?
add_action( 'pre_amp_render_post', 'xyz_amp_add_custom_actions' ); function xyz_amp_add_custom_actions() { add_filter( 'the_content', 'xyz_amp_add_featured_image' ); } function xyz_amp_add_featured_image( $content ) { if ( has_post_thumbnail() ) { // Just add the raw <img /> tag; our sanitizer will take care of it later. $image = sprintf( '<p class="xyz-featured-image">%s</p>', get_the_post_thumbnail() ); $content = $image . $content; } return $content; }
Forum: Plugins
In reply to: [AMP] ERROR: insert three pictures in the postSame here. The new version 0.4 ads 3 featured images. It was OK before the update.
https://www.sawpanse.com/2016/10/06/southern-command-haiti-hurricane-matthew/amp/Forum: Plugins
In reply to: [AMP] Amp facebook-insta-twitter embedI’m having the same issue. It says you need to add the following scripts in the <head> tag.
Facebook:
<script async custom-element=”amp-facebook” src=”https://cdn.ampproject.org/v0/amp-facebook-0.1.js”></script>”></script>Instagram:
<script async custom-element=”amp-instagram” src=”https://cdn.ampproject.org/v0/amp-instagram-0.1.js”></script>Twitter:
<script async custom-element=”amp-twitter” src=”https://cdn.ampproject.org/v0/amp-twitter-0.1.js”></script>Source: https://github.com/ampproject/amphtml/tree/master/extensions
Forum: Plugins
In reply to: [Quick Paypal Payments] Modify Personal DetailsI’d like to replace Address 2 with a dropdown. I can edit code if you point me to the right file.
Thanks.
Ken
Forum: Plugins
In reply to: [W3 Total Cache] Instagram Embed Not WorkingYes I’m using the minify option and I think that’s what causing the issue.
How to I exclude Instagram CSS or JS? I’m not using any Instagram plugin; I’m simply using the photo URL in the article.
Forum: Hacks
In reply to: Related Posts by TagsGreat. Thank you ??
Forum: Hacks
In reply to: Related Posts by TagsThanks Gagan. Can you make it fetch related posts based on tags?
Here are the steps again https://screencast.com/t/Q32gs55oCoc
All I want is to have 1 Album with the 2 galleries on the first page, then I’d like to see all the thumbnails from the gallery that I clicked on. Last, I’d like to browse through each image using the the imageBrowser.
Thank you for the quick reply.
In the “customize the display settings” section, choosing “NextGen Basic Thumbnails” doesn’t work. That’s the option I’m having issues with. But if I choose “NextGen Basic ImageBrowswer,” it works. https://prntscr.com/6df0yl (working setting)
I just wanted users to see list of thumbnails first after clicking on a gallery, but this will do it for now.
Not sure why “NextGen Basic Thumbnails”; it used to work.
Hi,
I tried that and it didn’t work. It only worked when inserted just 1 gallery into a post. But when inserting an album, it didn’t work.
For example, if I insert an album with 4 galleries, I can see a gallery to see the thumbnails. But when I click on a thumbnail, it sends me back to gallery listing.
See video demo here tested on localhost, but it’s the same for Live site.
https://screencast.com/t/tZ5jTGxTReEvery time I click, it keeps adding the album name and gallery name in URL – like this
https://localhost/sawpanse/2015/03/05/pix/gallery/pid--1/all-pix/206637/all-pix/206637/all-pix/206637/all-pix/206637/all-pix/206637
Forum: Fixing WordPress
In reply to: WordPress Posts Not Showing in adminAs I mentioned before, the posts were showing in PHP myAdmin but not in WordPress admin. I found out that all “post_type” was set “portfolio” instead of “post”. I guess the previous theme used custom types.
So I ran this SQL to change all portfolio post_type to post – and not all post are showing in WordPress admin.
UPDATE
wp_postsSET
post_type= 'post' WHERE
post_type= 'portfolio';
Forum: Fixing WordPress
In reply to: WordPress Posts Not Showing in adminsite URL: https://www.corhinnshow.com/
Thanks for replying Krishna. I just checked the wp_posts in the DB again, it looks like all the posts are set to post_type = portfolio. When I change a post_type to “post”, that post shows up in WP-admin. Now I have to do them one by one. Any faster way to fix this?
Thanks @srihith.v, this fixed it. ^
You can check it here. Sawpanse.Com