Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have programming experience from PHP but now I am creating a WordPress theme which is a bit mixture.I have a blog which contains posts , when a user click on a post i want to show the clicked ID content in the other page , i am new to wordpress i want to show the details of my each post in the details page.How can i do that ?
Homepage: Contains a loop for displaying all posts
Now i want a page which display each post separately when a user click any post from homepage.
May be steps below should do it
Make receive.php as template, add <?php /* Template Name: theTemplateName */ ?> at the beginning of template file.
Create a page, give it a slug, let say the-receiver, make sure you select theTemplateName as its template.
Now, create a form inside single.php, give an (hidden) input with value from get_the_ID(), set it POST/GET whatever suits you, and the action to site_url('/the-receiver'), match the url to the slug the page that is using your receiver template name. Watch now button should submit the form.
Inside the file/template receiver.php, do your stuff.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I am new in marketo, can anyone help me out?
I have created two landing pages. The first page I created have form in it and other page is a simple landing page. The problem is that I want to send data values from one landing page to other when user click the submit button and print these data values to that page. But I don't know how to send form data from one landing page to other in MARKETO.
I have searched on google but didn't get the right answer...
You should be able to pass the form data from your first page, to the second page using query string parameters. There is an article here and also one here that might help.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I have a question about WordPress register post type:
How can I register a post type like portfolio?
For example:
In the WordPress dashboard, I can register a post type and taxonomy. After this I want to create a page to display all the portfolio and taxonomies like (portfolio.php) and display a single portfolio in a (single-portfolio.php).
Can someone explain this for me please?
You can use various methods :
Create in your theme a archive-#postypename#.php (best one)
Create a page with a custom template name and put there all your code.
For the single page you can, as you write, create a single-#postypename#.php in your theme.
Here's an helpful link:
How to Create a Custom Post Types Archive Page in WordPress
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have a Wordpress site with Avada theme using Fusion Builder. I've added a button using Fusion Builder and there is a list of settings for that button, e.g. color, url, alignment etc. Currently i've set the url to load "page.php". So if the user clicks on it, they are taken to"page.php".
But I also have a dropdown next to the button, and i want to POST the selected e.g. Australia
Since the button has been built for me I dont know how to add the POST variables to the url so i can get something like:
page.php?selected_option="Australia"
i.e. how do i edit the button HTML and script?
Along with "url, color and alignment" there is another button option "give id to wrapping element". I've put "my_search_button". Now the page source is showing this:
<a id="my_search_button" ...><span class='fusion_button_text">Search</span></a>. However for what I'm trying to do this doesn't seem like good practice
Please check Proper Documentation for it all answers are in it
https://theme-fusion.com/support/documentation/avada-documentation/
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I created a custom post type name Blog. So when click the link [/index/blog/] all custom post types show there.
Now I deleted the custom post type Blog and created a page and named it "Blog". Now when I click the link it won't work. It won't show my page that I created.
Since I deleted custom post type Blog, shouldn't show my page 'Blog' at [/index/blog/]?
Since you have created custom post type of name blog. Hence the slug blog is registered in database for custom post type. So it won't work for your page blog.
Edit the blog page from admin panel and check the Permalink which is just below the title. This is your link for blog page.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I am creating a Faculty Page in WordPress, and I am trying to figure out how to have a specific post load content when the 'Faculty Page' is clicked. After that the user has a choice to click on any faculty member which will change the content that was generated when the page was loaded.
The user will see the same content in the area when the page loads, then that content will change based on which faculty member they chose.
I know it isn't much to go on, but any help would be appreciated!
Thanks!
Try this:
http://en.support.wordpress.com/posts/post-visibility/#sticky-posts
"By default, WordPress.com blogs display posts in reverse chronological order on the home page with the latest post at the top. There isn’t a way to display posts in chronological order, but you can mark some posts as Sticky to make them appear above the other posts. They will stay at the top of your posts until you uncheck that option on the Edit screen for that post.
You can mark a post as sticky by checking the option that says “Stick this post to the front page” in the Publish settings on any post."
edit: Also, I think there is a WordPress exchange that might help you better than Stackoverflow.
edit: Yeah, try here, https://wordpress.stackexchange.com/?as=1