Moondrop
Forum Replies Created
-
Forum: Plugins
In reply to: [Gravitate Encryption] Not compatible with PHP 7.2@softmixt thanks for posting the updated code with openssl! I was able to implement your code and get the public function decrypt working with my legacy mcrypt entries.
However, I can’t seems to get public function encrypt to work. I noticed that:
$encrypted = base64_encode(openssl_encrypt($value . md5($value), 'AES-256-CBC', $key, OPENSSL_RAW_DATA | OPENSSL_NO_PADDING, $iv));
returns a blank string for me. Any ideas on why this may be?
Forum: Fixing WordPress
In reply to: HTML entity problemHi georgecj, thanks for posting your full code!
I can see now where the broken link is occurring. Your ‘mb_strimwidth’ function is trimming your link too early and causing it not to close correctly. You can see that in your imgur screenshot where you have “…” added inside of your link.
If you remove the ‘mb_strimwidth’ it should fix your problem.
However, I assume want the text to be retricted to a certain length. I recommend looking into using the ‘get_the_excerpt’ function and an excerpt plugin that allows html in excerpts. Those plugins will have code that identifies broken tags, from text trimming, and close them.
Here’s a plugin I often use: https://en-ca.www.ads-software.com/plugins/advanced-excerpt/
get_the_excerpt info: https://codex.www.ads-software.com/Function_Reference/get_the_excerpt
- This reply was modified 8 years, 3 months ago by Moondrop. Reason: Typos
Forum: Fixing WordPress
In reply to: HTML entity problemHi georgecj, are you able to post your php code with the
get_the_content()
and the WYSIWYG code you are pulling fromget_the_content()
? The screenshot you provided only gives us part of the picture so it is difficult see what is causing the quote issue you mentioned.Forum: Fixing WordPress
In reply to: HTML entity problemHi georgecj, you have a few HTML errors in your code. Inside of your link, you have two incorrect closing
</div>
tags and an additional unclosed<div class="col-sm-3 col-xs-12">
. This would definitely mess up your layout.Fix up those incorrect
<div>
‘s and that should fix your layout.You can validate your code here:
https://validator.w3.org/#validate_by_inputForum: Fixing WordPress
In reply to: Child of single-{cpt} template?Hi danhodkinson, right, I forgot to mention that the new
downloads
post does not pull its parent content by default.So when you created the
downloads
post, it is its own individual post. The loop only pulls its own content. What you need to do is get the parent post’s content.You could use the
get_post
function:<?php $parent = get_post( $post->post_parent ); echo $parent->post_title; echo apply_filters( 'the_content', $parent->post_content ); ?>
See here for more:
https://wordpress.stackexchange.com/questions/14273/get-parent-fields-title-content-excerpt-etc
https://developer.www.ads-software.com/reference/functions/get_post/- This reply was modified 8 years, 3 months ago by Moondrop. Reason: formatting
Forum: Fixing WordPress
In reply to: Child of single-{cpt} template?Hi danhodkinson, this can be done if you set your Custom Post Type to be
'hierarchical' => true
and set it to supportpage-attributes
. Then when you make a new Custom Post Type entry you can set parent and child relationships (sodownloads
would be a child ofyourproduct
).More details on Custom Post Type parameters here: https://codex.www.ads-software.com/Function_Reference/register_post_type
- This reply was modified 8 years, 4 months ago by Moondrop.
Forum: Fixing WordPress
In reply to: Trouble editing categories, deleting categories, etc.All blog posts need to be placed into a least one category. The default category, unless you create a new one, is “uncategorized”. If you want to create an different default category, you can change it under Settings > Writing.
Forum: Fixing WordPress
In reply to: Add classes to wp_nav_menu list-items and anchorsHi, what you are looking for is a custom nav Walker. By setting up a Walker class you can customize the markup of your nav.
https://codex.www.ads-software.com/Class_Reference/Walker
Good example of a custom Walker using Twitter Bootstrap: https://github.com/twittem/wp-bootstrap-navwalkerForum: Fixing WordPress
In reply to: moved site – home page wrong urlThe site is working perfectly fine for me. Everything links to https://www.teeccino.com.au. Is there a particular link that goes to https://teeccino.com.au/wp/ and have you tried clearing your browser cache since the move?
Forum: Fixing WordPress
In reply to: Subfolder-like URL structureYou’re welcome vslot! Don’t forget to mark this topic as resolved unless you have any further questions.
Forum: Fixing WordPress
In reply to: WordPress Page Isn’t Aligning AnymoreHi trey03, update your code to this (it wraps your floated divs in a clearfix)
<div class="clearfix"> <div style=”width: 46%; padding: 0 10px 0 0; float: right;”>[Shopify’s embed code 1][ Shopify’s embed code 2]</div> <div style=”width: 46%; padding: 0 10px 0 0; float: right;”> [Shopify’s embed code 3][ Shopify’s embed code 4]</div> </div> <!-- clearfix -->
Forum: Fixing WordPress
In reply to: Subfolder-like URL structureIf you edit your Setting > Permalinks, and set the Custom Structure to
/blog/%postname%/
it will work. Be aware however, if you have any custom post types/blog/
will be prepended to those URLs with this method.Forum: Fixing WordPress
In reply to: WordPress Page Isn’t Aligning AnymoreCan you provide a link to the page with the problem? This is a CSS issue most likely caused the by floats you added. If you can edit the CSS, the issue is, you need to clearfix or set
overflow:hidden;
on the parent html container.- This reply was modified 8 years, 4 months ago by Moondrop.
Hi streety1574, I recommend taking a look at this topic: https://wordpress.stackexchange.com/questions/37144/how-to-protect-uploads-if-user-is-not-logged-in
There are a few other options such as htaccess IP restriction or htpasswd your specific upload directory + SSL, but they require customization to your specific needs.
Forum: Fixing WordPress
In reply to: Info Bar CodeThanks for the link. Looking at the code I think the bar is from plugin. I see a “convertplug” plugin script loading. If it is from a plugin, then the code for it will not be in your theme files. Check your WordPress backend for an info bar plugins, particularly https://www.convertplug.com/.
- This reply was modified 8 years, 4 months ago by Moondrop.