iavinash
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Is there any way to dynamically redirect URLs using htaccessThis code is doing the trick.
RewriteRule ^(\d+)$ /?p=$1 [R=302,L]
- This reply was modified 5 years, 11 months ago by iavinash.
Forum: Fixing WordPress
In reply to: Is there any way to dynamically redirect URLs using htaccessThanks @sjaure
It didn’t work quite well
If i test below code using https://htaccess.madewithlove.be/ it shows required result but when i place the same code in live website, it doesnt work.
RewriteRule "^(.*)$" ?p=$1 [R=301,L]
Another problem with this code is it will redirect everything after website name. My requirement is, it should redirect only when there are some number like https://example.com/123
Forum: Fixing WordPress
In reply to: How to get linked post URL in Polylang pluginThanks Kartik,
I have see that forum, there are rarely any answer/reply to any question.
I thought, i might get some help here.Thanks,
Avinash- This reply was modified 6 years ago by Jan Dembowski.
Forum: Fixing WordPress
In reply to: Quick help for site under attacjThanks you,
Is there anyone else like to contribute and share their experience?
Thanks,
AvinashForum: Fixing WordPress
In reply to: Quick help for site under attacjThanks, What is the plugin name?
Forum: Fixing WordPress
In reply to: Is it possible to create short code for shortcodesHi keesiemeijer
This is to update you that above line of code is working fine.
I am checking couple of other things and than will mark this post resolved.Thanks for all your help.
AvinashForum: Fixing WordPress
In reply to: Is it possible to create short code for shortcodesHi keesiemeijer,
Sorry to say but problem still persists.
Maybe problem is with first line.Here is the original code
function my_shortcode_func( $atts ) { ob_start(); echo "Answer : Please click on one of the button below to see the answer"; $shortcode2 do_shortcode('[toggle title="Click here for the answer" state="close"] Answer [/toggle]'); echo do_shortcode('[sociallocker]' . $shortcode2 . '[/sociallocker]' ); return ob_get_clean(); } add_shortcode( 'my_shortcode', 'my_shortcode_func' );
Without shortcode, inside post they would be placed like this
[sociallocker] [toggle title="Click here for the answer" state="close"] Answer [/toggle] [/sociallocker]
and the output of the above sample post can be seen here
Thanks,
AvinashForum: Fixing WordPress
In reply to: Is it possible to create short code for shortcodesHi keesiemeijer,
Will it be possible for you to check the syntax again.
Following line is breaking my sites
echo do_shortcode('[SHORTCODE1]few text' . $shortcode2 . 'few text [/[SHORTCODE1]]' );
Thanks,
AvinashForum: Fixing WordPress
In reply to: Is it possible to create short code for shortcodesThanks keesiemeijer,
This is working pretty well. Thank for your time.
Now I am running with one small fix.If I need to use a shortcode withing a short codes its not working.
For example if my code is like this [SHORTCODE2] is not working.echo do_shortcode(‘[SHORTCODE1]fex text [SHORTCODE2] few more text [/SHORTCODE2]few text [/[SHORTCODE1]]’);
If i give like this again [SHORTCODE1] is not woeking
echo do_shortcode(‘[SHORTCODE1]’);
echo do_shortcode(‘[SHORTCODE2] few text [SHORTCODE2]’);
echo do_shortcode(‘[/SHORTCODE1]’);
These nested short codes work fine if i use them within the post. They are not just working with my custom short code.
Thanks for all your help so far.
AvinashForum: Fixing WordPress
In reply to: Is it possible to create short code for shortcodesThanks keesiemeijer,
I have created child them and working on that.
Above code is working fine but I need to explore couple of more things like how to add few other texts and hyperlink between those two short codes.
function my_shortcode(){
// this should be inside my short code
Thanks for visiting my website below are the recently published article
[SHORTCODE1] Retrive latest 10 posts [SHORTCODE1]
if you like this website please also suscribe
[SHORTCODE2] Display Scuscription box [SHORTCODE1]
if you would like, you can also contribute in this forum
[SHORTCODE3] Option to write guest post [SHORTCODE3]} add_shortcode(‘my_shortcode’, ‘my_shortcode’);
Short codes I have used SHORTCODE1,SHORTCODE2 and SHORTCODE3 are already available and working. I just need to integrate them within MY_SHORTCODE
I am exploring few other blogs and hope to get something..
If you think you can help me further or give me some reference, please do me a favor, but at the same time I respect your time also.Thanks,
AvinashForum: Fixing WordPress
In reply to: Is it possible to create short code for shortcodesThanks Alchymyth
For now could you please tell me that i need to write those codes again already written by the other short codes or I can use the short codes directly inside the code.
To make it clear, let say I have following two short codes
[HELLO] = To print Hello
[World] = To print WorldNow i want to make a new short code [MESSAGE] which should print those two messages. Is it possible to use those two shortcodes directly inside this new short code?
Thanks,
AvinashForum: Plugins
In reply to: [Facebook Comments] Double comments sectioon and at wrong placeThanks Alex,
I am asking about the subscription option for followup comments and not comment moderation. But no problem I can manage without that.
By any chance is it possible to enable the check box “Post on facebook” by default.
Thanks,
AvinashForum: Plugins
In reply to: [Facebook Comments] Double comments sectioon and at wrong placeThanks Alex
Could you please wait for the reply before marking it resolved.
Could you please guide on third point.
Thanks,
ávinashForum: Themes and Templates
In reply to: [Hueman] Google search doesn't open the post directlyThanks bdbrown,
Not sure why but for me its was not giving the url as sitename/postname
but now the search results are fine and opening the post..Thanks for your time and effort for checking this.
Avinash
Forum: Themes and Templates
In reply to: [Hueman] How to make the widgets in sidebar scroll