All Questions
11 questions
0
votes
0
answers
56
views
Import posts from a different database with the same old id
I am trying to retrieve data from an old custom programming to a new WordPress site, but I encountered a problem that I cannot retrieve the old id number. I need that to keep the site's archive, the ...
1
vote
1
answer
146
views
Display post lists in 2nd paragraph
Hello great WordPress developers, I would like to list posts from a specif category in the 2nd or middle paragraph of the post.
I tried adding some scripts to my function.php to achieve that, but I ...
3
votes
1
answer
2k
views
Can we completely remove the WordPress Sitemaps (WordPress 5.5)?
I have been using my WordPress site to create various types of content, I obviously submit my sitemaps to Google for getting my site indexed. But there is some content which I don't want on Google, ...
0
votes
1
answer
432
views
How to wrap image tag into div for post only?
I have created a function it wraps all image tag inside a div, but I want to apply it only for the post but my function wraps the page images inside a div also.
// Wrap img into div
function ...
0
votes
2
answers
285
views
Where Should i write the code for wordpress ajax voting?
I am a newbe in wordpress theme development. Can anyone tell me where I should implement the code for any ajax functionalities(say a voting system for posts)? should I write it on a separate plugin or ...
0
votes
1
answer
276
views
Post that populates itself (almost) automatically using data from imported excel file
What I mean is...
I'm trying to Import an Excel file with 1000s of data into Wordpress.
That's the easy part, there are plugins that import excel data.
I also want for each "data" to create a post ...
0
votes
1
answer
144
views
Send post changes to set email addresses (not users or subscribers)
What I have
I am using the "The Events Calendar" plugin on my site to coordinate a team of employees. I want to be able to send an automated email containing the body of an event post (post-type is ...
0
votes
1
answer
57
views
how can authors to define custom pages?
I have a options page and i use this code.
I want this, I add author id on sometext field (e.g 3,2,5,11 ) and my author.php redirect custom author page.
My author.php
<?php $post = $wp_query->...
-1
votes
1
answer
220
views
Notifications Bar on home page only
Is it possible to create an "Alert" button that can be turned on and off thru wp-admin.
Of course the "Alert" button im asking for is to be published at the main page, but can only be turned on when ...
5
votes
3
answers
25k
views
Limit access to posts/pages by user roles
I'm looking for a way to protect content by user roles.
Example:
you have to be registered to view posts (frontend).
If a user is a subscriber he can read post 1, 2 and 3, but if the user is a ...
27
votes
4
answers
36k
views
Manually set global $post vars with an ID, in order to use template tags
I have a function retrieving ID's of posts by very specific means.
I need to be able to set the global $post in order to use functions like the_content(), which does not allow an ID as a parameter.
...