Ramesh (thecodeisclear)
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to edit title length in custom shortcodeYou can use the function
substrto trim the output// Add Shortcode function the_current_title() { // Returns only 25 characters of the title return substr(get_the_title(), 0, 25); } add_shortcode( 'the-title', 'the_current_title' );PS: This will blindly cut the title causing partial words to appear. If you want to avoid this, here is a nice post on creating a custom function
http://www.hashbangcode.com/blog/cut-string-specified-length-phpForum: Fixing WordPress
In reply to: Contact Page TricksWhile it might not be as fancy as the links you provided, here are two options that you could use
Email, Phone & Map
contact-option-01.pngEmail, Phone, Map & Contact Form
Contact form 7 is the plugin used for building the contact form.
contact-option-02.pngNote 1: Plugin used is shortcodes ultimate. You can change the color of the icons instead of the default dark gray.
Note 2: Results may vary based on the theme you use. A Full-width page will give you the best resultsForum: Fixing WordPress
In reply to: Contact Page TricksShortcodes are a way to add content to your website without having to code. The plugin I mentioned has many options which will allow you to include icons, tabs and other fancy stuff which might not be originally available with a theme.
Let me rustle something on my localhost with what you require and will post a screenshot in sometime.
Forum: Fixing WordPress
In reply to: Hacked: mirrored siteGreat tips by sabinooo. I would agree with the suggestion that if you have a recent backup and can redirect your domain to a new host, you could just setup your site in a new location (with different passwords ofcourse).
Forum: Fixing WordPress
In reply to: Contact Page TricksI think this can be solved using a plugin. There are many shortcode plugins, from my experience Shortcodes Ultimate would work out fine.
If this is something you want to try, let me know, I can walk you through setting it up.
Forum: Fixing WordPress
In reply to: WordPress Next Post IssueGlad to see it worked out. Paypal.. it really is not necessary. There are some great volunteers in the forums and I am just a beginner.
PS: You can tip any charity of your choice and I think we can call it even 😉
Forum: Fixing WordPress
In reply to: WordPress Next Post IssueI think PHP str_replace would fix this for you. Here is the code that should work
<div class="right-side"> <?php if( $prev_link != NULL ) { $prev_link = str_replace("http://", "http://adf.ly/527275432/", $prev_link); echo $prev_link . "<i title='Last Episode' class='playerleft tooltips fa fa-angle-double-left'> </i></a>"; } ?> <a class="tooltips" title='View all <?php echo $name; ?> Episodes' href='<?php echo $series_link; ?>'><i class="allepisodes fa fa-sort-amount-asc"></i></a> <?php if( $next_link != NULL ) { $next_link = str_replace("http://", "http://adf.ly/527275432/", $next_link); echo $next_link . "<i title='Next Episode'class='playerright tooltips fa fa-angle-double-right'> </i></a>"; } ?> </div> <!-- End of right side -->Forum: Fixing WordPress
In reply to: WordPress and Mamp. Live URL changes to LocalHost URLGlad it worked out. Good Luck.
Forum: Fixing WordPress
In reply to: website is not openingSorry dweeliph. Do you atleast have FTP access to the website? Did he give you these details so that you can upload files other than through wordpress? (You can disable all plugins by renaming the
pluginsfolder)If not, you will have to wait for him to be back.
Forum: Fixing WordPress
In reply to: How To Filter Tags by Category??Sounds quite interesting. If I understand correctly, each tag belongs to either “Reaction GIF” or “Normal GIF” category. For e.g. post-1 has tags
a,bandcunder category “Reaction GIF”. post-2 has tagsx,yandzunder category “Normal GIF”. So I will never find tagxassociated with category “Reaction GIF”What you are looking for is a way to show the two categories and under each the list of tags unique to them. Something like this?
Reaction GIF
a,b,cNormal GIF
x,y,zIf I have misunderstood your question, could you please give an example?
Forum: Fixing WordPress
In reply to: WordPress and Mamp. Live URL changes to LocalHost URLYou will need to make a DB update to change all URLs to point to the live server.
Here is a helpful link to do the search & replace: https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
I assume that you have already uploaded all the media to the server.
Forum: Fixing WordPress
In reply to: Website not working** Edit **
Didn’t notice your reply that the site was hosted by wordpress. As mentioned by the other mods, please post in the other forum.Forum: Fixing WordPress
In reply to: Website not workingErr.. I am a bit confused about your problem. If you are on localhost (own local computer), why would you need to pay a renewal fee?
Please share the following details:
1) URL to website
2) Where the site is hosted (hosting provider’s name)
3) Any recent changes that you did (maybe changed some DB settings)
4) Did your provider send any email/communicate that your site was going to be closed?Forum: Fixing WordPress
In reply to: website is not openingHi,
phpMyAdmin is a separate dashboard for accessing your site’s Database. It works independently of WordPress.
I was able to open the links
tollywood-top-5-stars-at-box-officeandavengers-2-age-of-ultron-2nd-trailor. The issue is with your homepage which could be a theme/settings error.Can you give more details on how the site is hosted? Did you install the site by yourself or was it done by someone else?
PS: Please don’t open duplicate threads for the same issue (https://wordpress.org/support/topic/website-giving-me-some-troubles?replies=2)
Forum: Fixing WordPress
In reply to: website is not openingI am not able to open your homepage even in Firefox. It could be a problem with the General Settins setup for your website. The website URL might be in error or could be a theme error that is causing the error.
To revert your theme to the default (Twenty Fourteen) run the following SQL commands via phpMyAdmin or any other frontend to access your database.
UPDATE wp_options SET option_value = 'twentyfourteen' WHERE option_name = 'template'; UPDATE wp_options SET option_value = 'twentyfourteen' WHERE option_name = 'stylesheet'; UPDATE wp_options SET option_value = 'Twenty Fourteen' WHERE option_name = 'current_theme';