Wordpress specific post when page loads [closed] - php

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

Related

I want to use category as custom type in Wordpress theme [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Generally, in WordPress when we click on any category, a page opens with all posts, associated with the category. I want to make a tweak in this behavior. I want when a category is clicked, all child-category should be listed and when a child-category gets clicked, all associated posts should be listed on the page.
I have no idea how to achieve this.
Could you guys give me any idea?
Regards!
If you would like to always show the categories, regardless of if they have posts, you could move the echoing of the '$category->name 'outside of the if '($posts)'. The way that it is currently, the category name will only be displayed if there is a post with that category.
I think that a potential bigger challenge would be to display the categories in a hierarchy (indenting the sub-categories). If you simply move the display of the category name above the check for posts, they will all show as top-level categories. Here is a discussion of someone working on this issue on Stack Exchange:
https://wordpress.stackexchange.com/questions/270176/showing-categories-and-subcategories-with-posts
I wonder if another possibility would be to use: https://developer.wordpress.org/reference/functions/wp_list_categories/ and then override the HTML generation. It looks like that is what is happening here:
https://wordpress.stackexchange.com/questions/98755/how-can-i-customize-the-wp-list-categories

How to get ID from URL in WordPress [closed]

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.

wordpress post link to category [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have been searching for a result on google, but I haven't succeeded yet :( .
I'm trying to change the destination of a post link within wordpress.
I have a link to a category page, this category gets (at the moment, but not limited to...) 3 posts.
What I would like is that those posts each link to another category when clicked. But i dont want the links to be hard coded, so i could change to what category they link at any time.
Is there a way to make this work? Or is there a (fairly simple) alternative way of doing this?
Your posts act like categories. So why should a link to a post redirect to a category page (this question is rethorical - semantically it just shouldn't)?
You should try to define your system via categories and subcategories. Wordpress offers huge functionalities for this system and there are plugins out there if you want to extend your categories with additional post-like content (thumbnails, formatted descriptions, etc.).
If you need user interaction you can easily build a form with ACF, NinjaForms / GravityForms where other people can add such category items.
I really don't want to be rude - but having posts that actually link to categories instead of behaving like posts sounds just wrong.

Wordpress use theme button and add php POST data [closed]

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/

I want my wordpress post to load a few at a time on user scroll similar to facebook [closed]

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 10 years ago.
Improve this question
I want my wordpress post to load a few at a time on user scroll similar to facebook, for example my web page should load 10 automatically and when I get the bottom of the page I want it to load 10 more until all posts are loaded on the home page.
How would I go about doing this? I have done some digging around but I'm pretty new to wordpress and have not been able to find a script or plug in that could accomplish the task. All help is greatly appreciated!
My website is dev.vercitycolab.com (it's only loading 10 right now because when I posted all of my video posts up it was loading WAY too slow)
Short of coding it yourself, here is a plugin that does what you are asking for: http://wordpress.org/extend/plugins/infinite-scroll/

Categories