0
votes
1answer
30 views

How to get URL param to shortcode?

I can't find solution for this ... URL: www.foo.com/some_page/?name=John Page content: Hi [Name]! Worpress still redirects back to www.foo.com/some_page/ I tried everything ... I need ...
0
votes
1answer
96 views

Add an access code form to call a unique page based on page without registration

I've seen some other questions similar but not the totally the same. If I missed in the search, please forgive me. However this what I have so far: I've created a form that has the following: an ...
0
votes
1answer
96 views

Change the default video URL in a post to shortcode format

I want to add video from youtube/vimeo to my post.Whenever i add a video to my post ,there will display a link like https://www.youtube.com/watch?v=dsUXAEzaC3Q in my admin(Add new post ),and in the ...
1
vote
1answer
77 views

Shortcode for a link and thumbnail

<?php // Add Shortcode function blog_shortcode( $atts ) { // Attributes extract( shortcode_atts( array( 'id' => '', ), $atts ) ); // Code if (has_post_thumbnail()) { $url ...
2
votes
1answer
2k views

How do i reference the theme path in pages for images?

How do i reference images in a page/post without installing the php plugin or typing it out manually like this: domain.com/wp-content/themes/mytheme/image.jpg
0
votes
2answers
472 views

page url in shortcode

I have a problem. I'm using a custom shortcode to try to get the url. If the shortcode is inside a post then it gets the post url. When I open the post on a category list, this post shortcode works ...