Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
Kami's user avatar
  • 1
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 ...
Godwin's user avatar
  • 13
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, ...
Aditya Agarwal's user avatar
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 ...
Atul Rai's user avatar
  • 111
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 ...
Nilabhra Chakraborty's user avatar
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 ...
Too Many Questions's user avatar
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 ...
xtojump's user avatar
  • 111
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->...
Genxer's user avatar
  • 195
-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 ...
M3o's user avatar
  • 445
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 ...
Demilio's user avatar
  • 883
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. ...
Mild Fuzz's user avatar
  • 4,190